njaldea / nil-gate

Graph-based Execution Library
Other
1 stars 0 forks source link

behavior consistency of runner #5

Open njaldea opened 1 month ago

njaldea commented 1 month ago

which thread is responsible in running the graph. Asio and Immediate works differently right now.

Immediate does not have a thread to run on. This means, it users should not call core.run() in on_commit since it will block the thread.

Asio owns a thread where it should run on. This means calling core.run() is somewhat non-blocking. This means that users can simply call core.run() in on_commmit.

TODO: what is the right behavior? blocking? non-blocking?

njaldea commented 1 month ago

will probably be addressed in gatex