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

Add allow_async? flag to compose #22

Open
zachdaniel opened this issue Jun 20, 2023 · 0 comments
Open

Add allow_async? flag to compose #22

zachdaniel opened this issue Jun 20, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@zachdaniel
Copy link
Contributor

We need a way to control whether or not composed reactors can do things asynchronously.

if allow_async? is true:
If it is runtime composition, the reactor will be run in an async step. If it is compile time async, the steps produced will be allowed to be async.

if allow_async? is false:
If it is runtime composition, the reactor will be run in a sync step, passing the async?: false option to the reactor. I fit is compile time composition, the steps produced will not be allowed to be async.

compose :create_another_thing, __MODULE__ do
  allow_async? false
end
@zachdaniel zachdaniel added the enhancement New feature or request label Jun 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant