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

FlowVar should be awaitable in async procs #8080

Open
dom96 opened this issue Jun 20, 2018 · 2 comments
Open

FlowVar should be awaitable in async procs #8080

dom96 opened this issue Jun 20, 2018 · 2 comments
Labels
Async Everything related to Nim's async Standard Library Threads

Comments

@dom96
Copy link
Contributor

dom96 commented Jun 20, 2018

Related to #7853.

@dom96 dom96 added Standard Library Async Everything related to Nim's async Threads labels Jun 20, 2018
@dom96 dom96 added this to the v1 milestone Jun 20, 2018
@zielmicha
Copy link
Contributor

With primitive like uv_async_init (which can be implemented with "self-pipe trick") it's quite easy to implement Future-aware spawn. I'm not sure if async-awaiting FlowVars is possible without changing its API (it's not possible to attach a callback to a FlowVar).

Implementation in reactor.nim might be helpful: https://github.com/zielmicha/reactor.nim/blob/master/reactor/uv/uvthreadpool.nim

@Mouvedia
Copy link

Mouvedia commented Apr 4, 2020

Since 1.2 has been released, this should be moved to another milestone.

@Araq Araq removed this from the v1.1 milestone May 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Async Everything related to Nim's async Standard Library Threads
Projects
None yet
Development

No branches or pull requests

4 participants