import asyncio
import random


async def task_coro(pid):
    """Coroutine non-deterministic task"""
    await asyncio.sleep(random.randint(0, 2) * 0.1)
    print('Task %s done' % pid)
    return random.choice([True, False, False, False, False, False, False, False, False, False, False, False])