Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RFC: Dependencies for async operations #6

Open
AndrewDryga opened this issue Nov 15, 2017 · 1 comment
Open

RFC: Dependencies for async operations #6

AndrewDryga opened this issue Nov 15, 2017 · 1 comment

Comments

@AndrewDryga
Copy link
Member

Allow async operations to optionally specify dependency after which they want to run:

sage
|> run_async(:a, tx_cb, cmp_cb)
|> run_async(:b, tx_cb, cmp_cb, after: :a)
|> run_async(:e, tx_cb, cmp_cb)
|> run_async(:c, tx_cb, cmp_cb, after: [:b, :e])

To implement this we need a run-time checks for dependency tree to get rid
of dead ends and recursive dependencies before sage is executed.

@michalmuskala
Copy link
Collaborator

Related: https://github.com/fertapric/async_with

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants