Avoid circular reference
it clogs pickling and garbage-collecting
This commit is contained in:
parent
884c264f04
commit
42f690f966
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
init python:
|
init python:
|
||||||
class Parcel(object):
|
class Parcel(object):
|
||||||
"""
|
"""
|
||||||
@ -18,7 +17,10 @@ init python:
|
|||||||
self.wait = wait
|
self.wait = wait
|
||||||
self.label = label
|
self.label = label
|
||||||
self.func = func
|
self.func = func
|
||||||
self.queue = mailbox.parcels
|
|
||||||
|
@property
|
||||||
|
def queue(self):
|
||||||
|
return mailbox.parcels
|
||||||
|
|
||||||
def send(self):
|
def send(self):
|
||||||
self.mailed = True
|
self.mailed = True
|
||||||
|
Loading…
Reference in New Issue
Block a user