This is a development version (latest) and may be unstable. Go to latest (9.13.0)
{ } Raw JSON

bundles / IPython latest / IPython / external / pickleshare / PickleShareDB / waitget

function

IPython.external.pickleshare:PickleShareDB.waitget

source: /IPython/external/pickleshare.py :237

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