import asyncio

@asyncio.coroutine
def spawn():
    @asyncio.coroutine
    def task():
        yield from asyncio.sleep(1)
        print('eta yoba vipolnyaetsya asinhronno')

    yield from task()
    print('ideone ne mozhet v yunikod')


asyncio.get_event_loop().run_until_complete(spawn())
