Defines how the event should be called. If
Threading is set to
Sync, all event calls will be synchronized, so you can safely
access variables from various event calls. This mode has a negative impact
on performance, since other threads which call an event will be blocked
while another event call is still active.
If the threading model is set to
Async, events will be called
directly, i.e. there is no penalty in terms of performance, but event
calls will not be thread-safe.
Mode
Threaded calls each event in a new, separate thread.
This is especially useful when your code requires a high amount of computing,
or when you are using blocking methods. Since the event is called in a
separate thread, it does not halt the regular thread which triggered the
event.
Please note: You can no longer cancel an event when this
mode is selected.