share data with gevent

34 views
Skip to first unread message

Rita Morgan

unread,
Jan 30, 2018, 9:27:55 AM1/30/18
to gevent: coroutine-based Python network library
looking at code, https://gist.github.com/czardoz/2e5bf13a233ae28fda9f, i was wondering if there was a way to share information from background() to say "/foo" route. 
Does gevent provide any mechanism for generating data, similar to background, and then I retrieve data safely?  safely, meaning in an atomic manner? I want to avoid using global variables.'


ddorian43

unread,
Feb 9, 2018, 9:22:22 AM2/9/18
to gevent: coroutine-based Python network library
Make them both classes/objects and link them with reference ? (on __init__ or whatever)
Reply all
Reply to author
Forward
0 new messages