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 (start) primitive beneath (run) and (succeeds?) #155

Merged
merged 4 commits into from
May 3, 2022
Merged

add (start) primitive beneath (run) and (succeeds?) #155

merged 4 commits into from
May 3, 2022

Conversation

vito
Copy link
Owner

@vito vito commented May 3, 2022

  • takes a thunk and a callback function
  • runs the thunk concurrently
  • calls the callback with a boolean indicating success or failure
  • returns a function which can be called to wait for the thunk and return the result of the callback

so (succeeds? thunk) is implemented as ((start thunk id))

when the callback returns an error, the underlying error will be tacked on to the end; that way (run) can wrap the error with a higher-level message, while preserving the lower-level details

@vito vito added the enhancement New feature or request label May 3, 2022
@vito vito changed the title add (start) primitive beneath (run) and (suceeds?) add (start) primitive beneath (run) and (succeeds?) May 3, 2022
@vito vito merged commit a07b926 into main May 3, 2022
@vito vito deleted the add-start branch May 3, 2022 00:55
@vito vito mentioned this pull request May 3, 2022
5 tasks
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

Successfully merging this pull request may close these issues.

1 participant