Ejemplo n.º 1
0
        async def start(self):
            context = aiomisc.get_context()

            await asyncio.sleep(0.1)

            await context["test"]
            Awaiter.result = await context["test"]
Ejemplo n.º 2
0
    async def test():
        context = aiomisc.get_context()

        context["foo"] = True
        await asyncio.sleep(0.1)
        results.append(await context["foo"])

        context["foo"] = False
        await asyncio.sleep(0.1)
        results.append(await context["foo"])

        context["foo"] = None
        await asyncio.sleep(0.1)
        results.append(await context["foo"])
Ejemplo n.º 3
0
 async def start(self):
     context = aiomisc.get_context()
     await asyncio.sleep(0.1)
     context["test"] = True