disposed event

disposed event

Occurs when object is disposed, right after the resources disposing is successfully completed

Definition:

i_aux_disposable.disposed += handler    # subscribe handler(sender, args)
i_aux_disposable.disposed -= handler    # remove the last subscription of handler
i_aux_disposable.disposed.clear()       # remove every handler added from Python

Handler arguments

Argument Description
sender The object that raised the event.
args the event’s data, if any

The handler runs on the thread that raises the event, which can be an engine worker thread. An exception it raises there is printed to stderr and ignored; on the calling thread it reaches the engine, as in .NET.

See Also