def greenlet_id(self):
"""Find current greenlet's id
Parts of this class will be called in different greenlets. Greenlet Id
is used to differentiate between greenlet specific instance resources
that can't be shared between greenlets.
"""
return id(gevent.getcurrent())
评论列表
文章目录