# Worker.onProcessKilled(function callback)

with Promise style call: Not supported

Mini Program plugin: Not supported

to monitor Worker thread is recycled by system event (when iOS system resource is tight, worker thread exists the possibility of system recycling, developer can listen to this event and create a worker again). Only in the main thread worker Object.

# parameter

# function callback

A callback function for the event that the worker thread is reclaimed by the system