def spawn(coro):
 if (not isinstance(coro, types.GeneratorType)):
  raise ValueError((u'%s is not a coroutine' % coro))
 return SpawnEvent(coro)

def spawn ( coro ) : if ( not isinstance ( coro , types . GeneratorType ) ) : raise ValueError ( ( u'%s is not a coroutine' % coro ) ) return SpawnEvent ( coro )
create a spawned process .