call Event
Calls an event with the given details
Parameters
event
Event details
Throws
Thrown when an asynchronous event is fired from synchronous code.
Note: This is best-effort basis, and should not be used to test synchronized state. This is an indicator for flawed flow logic.