-
Hi there, Your code has been a wonderful learning tool once I dumped vscode and started using REPL and text editor. I'm going to start using debugger.jl and Revise.jl when I really start my project. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Normally data move in and out of functions via arguments and return values. |
Beta Was this translation helpful? Give feedback.
-
I'm not familiar with ZMQ, but if it uses regular Julia Anyway, the reader loop is quite basic and can be easily customized. |
Beta Was this translation helpful? Give feedback.
Normally data move in and out of functions via arguments and return values.
However, in an async context, callback functions (i.e. the members of
Wrapper
) are automatically called by code deep within the program that the user has no access to, therefore it's not possible to use the usual arguments and return values to pass data in and out.Alternative ways are required to allow callbacks to pass data in and out.
Global variables, closures and channels are just examples of what can be used to this end.