You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
handle_continue was added to OTP 21 primarily to support asynchronous setup without blocking (this way we can run code right after init, but make sure start_link doesn't timeout or error).
Would be extremely useful to be able to bind right after init.
https://michal.muskala.eu/2018/06/20/my-otp-21-highlights.html#new-callback-in-genserver-handle_continue2
handle_continue was added to OTP 21 primarily to support asynchronous setup without blocking (this way we can run code right after init, but make sure start_link doesn't timeout or error).
Would be extremely useful to be able to bind right after init.
At the moment we do something like
Which is definitely not ideal (I remember I had to hack around a bit because certain sends wouldn't allow sending to self at all).
With the new GenServer callbacks, this would look like:
The text was updated successfully, but these errors were encountered: