Skip to content
Snippets Groups Projects
Commit 030c520d authored by jkerdreu's avatar jkerdreu
Browse files

Gevent & Asyncio


git-svn-id: https://redmine.imt-atlantique.fr/svn/xaal/code/Python/branches/0.7@2919 b32b6428-25c9-4566-ad07-03861ab6144f
parent 896b2391
No related branches found
No related tags found
No related merge requests found
from gevent import monkey;monkey.patch_all(thread=False)
import gevent
from xaal.lib import AsyncEngine,helpers
helpers.setup_console_logger()
def loop():
while 1:
print('loop')
gevent.sleep(1)
eng = AsyncEngine()
gevent.spawn(loop)
eng.run()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment