set_leave_callback


Description:

public void set_leave_callback (owned TaskThreadFunc leave_func)

Call leave_func when the task function of this is left.

user_data will be passed to leave_func and notify will be called when user_data is no longer referenced.

Parameters:

this

The Task to use

leave_func

a TaskThreadFunc

notify

called when user_data is no longer referenced

user_data

user data passed to leave_func