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.
| this |
The Task to use |
| leave_func | |
| notify |
called when |
| user_data |
user data passed to |