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
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.
The container example runs without doing anything:
Where the output is:
There's no mention of a "Child process" in there because the block is ignored.
The text was updated successfully, but these errors were encountered: