Currently, the recommended way to define a callback is via:
@schedule for e in sticktask()
foo(e)
end
- Should we define a function to make this easier? e.g.
setcallback(foo).
- If so, how should it behave when invoked multiple times? We could keep a global array of functions, but I worry about the performance overhead.
cc: @aviks