~andreserl/maas/lp_1459865

Viewing all changes in revision 4172.

  • Committer: MAAS Lander
  • Author(s): Gavin Panella
  • Date: 2015-08-10 11:45:54 UTC
  • mfrom: (4171.1.2 defer-to-new-thread)
  • Revision ID: maas_lander-20150810114554-sdmf5f1t73zcc5ap
[r=mpontillo][bug=][author=allenap] New function, deferToNewThread().

This is very similar to Twisted's deferToThread() except that no thread-pool is used. Instead a new thread is created, the function is called within it, then the thread ends. This is useful for long-running tasks where we don't want to take a "slot" from the thread-pool.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: