Skip to content

EM::Deferrable and EM.defer

yn edited this page Apr 30, 2012 · 3 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.

Clone this wiki locally