Task.terminationHook

Registers a termination hook that will be executed when the Task is killed.

class Task
void
terminationHook
(
scope void delegate
()
hook
)

Parameters

hook void delegate
()

delegate to be called after the task terminates

Meta