{"id":19588929,"url":"https://github.com/invenia/deferredfutures.jl","last_synced_at":"2025-08-12T06:48:03.335Z","repository":{"id":47716820,"uuid":"62352674","full_name":"invenia/DeferredFutures.jl","owner":"invenia","description":"Julia Futures which are initialized when written to","archived":false,"fork":false,"pushed_at":"2021-08-16T19:34:23.000Z","size":52,"stargazers_count":5,"open_issues_count":4,"forks_count":6,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-05T00:23:12.274Z","etag":null,"topics":["async","channels","futures","julia","parallel"],"latest_commit_sha":null,"homepage":null,"language":"Julia","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/invenia.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-07-01T01:19:41.000Z","updated_at":"2020-07-31T22:18:52.000Z","dependencies_parsed_at":"2022-08-22T21:10:27.477Z","dependency_job_id":null,"html_url":"https://github.com/invenia/DeferredFutures.jl","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/invenia/DeferredFutures.jl","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/invenia%2FDeferredFutures.jl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/invenia%2FDeferredFutures.jl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/invenia%2FDeferredFutures.jl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/invenia%2FDeferredFutures.jl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/invenia","download_url":"https://codeload.github.com/invenia/DeferredFutures.jl/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/invenia%2FDeferredFutures.jl/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270016787,"owners_count":24512964,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-12T02:00:09.011Z","response_time":80,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["async","channels","futures","julia","parallel"],"created_at":"2024-11-11T08:16:34.816Z","updated_at":"2025-08-12T06:48:03.296Z","avatar_url":"https://github.com/invenia.png","language":"Julia","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DeferredFutures\n\n[![Build Status](https://travis-ci.org/invenia/DeferredFutures.jl.svg?branch=master)](https://travis-ci.org/invenia/DeferredFutures.jl)\n[![Build status](https://ci.appveyor.com/api/projects/status/5sp5i4ewkfgw4cum/branch/master?svg=true)](https://ci.appveyor.com/project/iamed2/deferredfutures-jl/branch/master)\n[![codecov](https://codecov.io/gh/invenia/DeferredFutures.jl/branch/master/graph/badge.svg)](https://codecov.io/gh/invenia/DeferredFutures.jl)\n\nA `DeferredFuture` is like a regular Julia `Future`, but is initialized when `put!` is called on it.\nThis means that the data in the `DeferredFuture` lives with the process the data was created on.\nThe process the `DeferredFuture` itself lives on never needs to fetch the data to its process.\nThis is useful when there is a lightweight controller process which handles scheduling work on and transferring data between multiple machines.\n\n## Usage\n\nUse a `DeferredFuture` as you would a `Future`.\n```julia\njulia\u003e DeferredFuture()\nDeferredFuture at (1,1,1)\n\njulia\u003e DeferredFuture(3)\nDeferredFuture at (3,1,2)\n```\n\nYou can also use a `DeferredChannel` as you would a `RemoteChannel`.\n```julia\njulia\u003e DeferredChannel(()-\u003eChannel{Int}(10), 4)\nDeferredChannel(#1) at (4,1,3)\n\njulia\u003e DeferredChannel(4)\nDeferredChannel(DeferredFutures.#2) at (4,1,4)\n\njulia\u003e DeferredChannel(4, 128; content=Int)\nDeferredChannel(DeferredFutures.#2) at (4,1,5)\n```\nNote that `DeferredChannel()` will create a `RemoteChannel` with `RemoteChannel(()-\u003eChannel{Any}(1), myid())` by default.\n\nFurthermore, `@defer` can be used when creating a `Future` or `RemoteChannel` to create their deferred counterparts.\n```julia\njulia\u003e @defer Future()\nDeferredFuture at (1,1,6)\n\njulia\u003e @defer RemoteChannel(()-\u003eChannel{Int}(10))\nDeferredChannel(#3) at (1,1,7)\n```\n\nNote that `DeferredFuture(n)` does not control where the data lives, only where the `RemoteChannel` which refers to the data lives.\n\n## License\n\nDeferredFutures.jl is provided under the [MIT \"Expat\" License](LICENSE.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finvenia%2Fdeferredfutures.jl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finvenia%2Fdeferredfutures.jl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finvenia%2Fdeferredfutures.jl/lists"}