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

What kind of concurrency/parallelism does this library implement? #175

Open
king-of-poppk opened this issue Jul 29, 2023 · 0 comments
Open

Comments

@king-of-poppk
Copy link

It is my understanding that later::later(\() {...}) schedules functions to be executed, that only one such function can run at any given time, and that no such function can run if the session is not idle.

However, I am doubting this interpretation because of the presence of later::create_loop whose documentation says:

Normally, later uses a global event loop for scheduling and running functions. However, in some
cases, it is useful to create a private event loop to schedule and execute tasks without disturbing
the global event loop. For example, you might have asynchronous code that queries a remote data
source, but want to wait for a full back-and-forth communication to complete before continuing
in your code – from the caller’s perspective, it should behave like synchronous code, and not do
anything with the global event loop (which could run code unrelated to your operation). To do this,
you would run your asynchronous code using a private event loop.

Secondly, the C++ API seems to have some threaded implementation.

Could you clarify?

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

1 participant