

def release_data(key, state, delete=True):
    ' Remove data from temporary storage\n\n    See Also\n        finish_task\n    '
    if (key in state['waiting_data']):
        assert (not state['waiting_data'][key])
        del state['waiting_data'][key]
    state['released'].add(key)
    if delete:
        del key['cache'][key]

dataset/ETHPy150Open dask/dask/dask/async.py release_data/VarMisuse@68/114 `state`->`key`