eventmachine: wait for deferred actions to finishem-deferred
commitf385ed423e11ad40822f688bc592eaa78efa5b34
authorEric Wong <e@80x24.org>
Mon, 9 Jan 2017 18:59:00 +0000 (9 18:59 +0000)
committerEric Wong <e@80x24.org>
Mon, 9 Jan 2017 18:59:00 +0000 (9 18:59 +0000)
tree1cc73c8b3c1ebba45c2ed23d27c32467e778fe4b
parent28194bd423ee559a2693459fcceb24ea1200863b
eventmachine: wait for deferred actions to finish

Since EventMachine 1.0.0 in 2012, the EM.defers_finish? API
exists to check for the existence of deferred actions.
Support it if it exists in the running version of EM and
update the note in our SIGNALS document.

Thanks to <alex0375@gmail.com> on the mailing list for bringing
this up:
https://bogomips.org/rainbows-public/CAKwvcL-VH3we4qA1pkNAstTmWvqNA=Rir2N_YiWztV_qbaLQvA@mail.gmail.com/
SIGNALS
lib/rainbows/event_machine.rb
t/app_deferred.ru
t/t0700-app-deferred.sh