EM::Deferrable and EM.defer

Solomon White edited this page Dec 29, 2015 · 5 revisions

Be careful not to mix up EM::Deferrable and EM.defer:

EM.defer is one of EventMachine’s mechanisms for lightweight concurrency. (Spawned Processes is another.)

EM.defer makes it easy and graceful to initiate a long-running (“deferrable”) operation (such as a call to an external web site), and attach any number of code blocks to be executed when the deferrable operation completes.

This page is under construction. The intention is that this page will become the primary resource for learning about Deferrable.