Uvloop: Any plan combining uvloop with aiohttp?

Created on 6 May 2016  路  2Comments  路  Source: MagicStack/uvloop

Or is it possible now?

question

Most helpful comment

Yes, just put these lines

import asyncio
import uvloop
asyncio.set_event_loop_policy(uvloop.EventLoopPolicy())

in the very beginning of your program and it will run on uvloop. aiohttp will run too.

All 2 comments

Yes, just put these lines

import asyncio
import uvloop
asyncio.set_event_loop_policy(uvloop.EventLoopPolicy())

in the very beginning of your program and it will run on uvloop. aiohttp will run too.

I tried this and it resulted in an unstarted loop. I am not sure why.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

autumnjolitz picture autumnjolitz  路  6Comments

giampaolo picture giampaolo  路  3Comments

pranavtbhat picture pranavtbhat  路  6Comments

GoodPete picture GoodPete  路  8Comments

amackillop picture amackillop  路  4Comments