auromat.util.coroutine module

auromat.util.coroutine.broadcast(iterable, *targets)[source]

Sends items to multiple coroutines.

If one coroutine raises an exception, then all other coroutines are killed as well and the exception is re-raised to the caller.

Parameters:
  • iterable – the items to send to the coroutines
  • targets – coroutines to send iterables to
auromat.util.coroutine.coroutine(func)[source]
auromat.util.coroutine.throw(target, etype, e, tb)[source]