def spawn(coro):
    """Event: add another coroutine to the scheduler. Both the parent
    and child coroutines run concurrently.
    """
    if not isinstance(coro, types.GeneratorType):
        raise ValueError(u'%s is not a coroutine' % coro)
    return SpawnEvent(coro)
dataset/ETHPy150Open beetbox/beets/beets/util/bluelet.py/spawn/original