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
{{ message }}
Repository navigation
Container example doesn't actually initialize anything #15
controller=Async::Container::Controller.newdo |container|
Async.logger.debug(self,"Setting up container...")container.run(count: 1,restart: true)doAsync.logger.debug(self,"Child process started.")whiletruesleep1ifrand < 0.1exit(1)endendensureAsync.logger.debug(self,"Child process exiting:", $!)endendbegincontroller.runensureAsync.logger.debug(controller,"Parent process exiting:", $!)end
I had it that way before but decided against it as a general pattern it's too magical and literally doesn't even really save more than a few lines of code.
Activity
tadman commentedon Apr 30, 2020
A reworked example that seems to function:
Where the
setupmethod needs to be customized. Presumablynewcould capture that block and use it withinsetup?ioquatix commentedon May 1, 2020
I had it that way before but decided against it as a general pattern it's too magical and literally doesn't even really save more than a few lines of code.
ioquatix commentedon Aug 13, 2024
Sorry, I don't understand my reply at all haha. I'm going to review this again.