Function pack()

← Back to Module multiprocess



Module multiprocess → pack()

Description

Pack any value into a string. This is useful when you want to pass array or simple object to the parent/child process. This function is a wrapper of json.encode({packed: ...}). Warning: this function is now deprecated, and will be removed on the future release

pack(data)


Parameters


Return Value


Usage Example

import multiprocess
 
' Do some intensive operations...
 
process_return(pack([data1, data2, {a: 10, b: 20}]))