Slide 4
Slide 4 text
How it’s exposed to Python:
The Async Façade
• Submission of arbitrary “work”:
async.submit_work(func, args, kwds, callback=None, errback=None)
• Calls func(args, kwds) from a parallel thread*
• Submission of timers:
async.submit_timer(time, func, args, kwds, …)
async.submit_timer(interval, func, args, kwds, …)
• Calls func(args, kwds) from a parallel thread some ‘time’ in the
future, or every interval.
• Submission of “waits”:
async.submit_wait(obj, func, args, kwds, …)
• Calls func(args, kwds) from a parallel thread when ‘obj’ is signalled