Function unpack()

← Back to Module multiprocess



Module multiprocess → unpack()

Description

Unpack a packed string from the parent/child process. This function is a wrapper of json.decode(...). Warning: this function is now deprecated, and will be removed on the future release

unpack(data)


Parameters


Return Value


Usage Example

import multiprocess
 
process("worker", [], void(), on_return(), void())
 
function on_return(data)
   d = unpack(data)
   writer(d)
stop