2017-09-18 10:07:21 +00:00
|
|
|
|
|
|
|
import mitogen.core
|
2017-09-18 11:33:30 +00:00
|
|
|
import mitogen.master
|
2017-09-18 10:07:21 +00:00
|
|
|
|
|
|
|
|
2017-09-18 11:33:30 +00:00
|
|
|
@mitogen.core.takes_econtext
|
|
|
|
def allocate_an_id(econtext):
|
|
|
|
mitogen.master.upgrade_router(econtext)
|
|
|
|
return econtext.router.allocate_id()
|
2017-09-18 10:07:21 +00:00
|
|
|
|