bundles / IPython 9.10.0 / IPython / external / pickleshare / PickleShareDB / waitget
function
IPython.external.pickleshare:PickleShareDB.waitget
Signature
def waitget ( self , key , maxwaittime = 60 ) Summary
Wait (poll) for a key to get a value
Extended Summary
Will wait for maxwaittime seconds before raising a KeyError. The call exits normally if the key field in db gets a value within the timeout period.
Use this for synchronizing different processes or for ensuring that an unfortunately timed "db['key'] = newvalue" operation in another process (which causes all 'get' operation to cause a KeyError for the duration of pickling) won't screw up your program logic.
Aliases
-
IPython.core.interactiveshell.PickleShareDB.waitget