Create a tracker for a specific event of an event target.
The target to track.
The event name to track.
Stop tracking.
Wait asynchronously for a number of events.
number of events, default 1.
StaticcreateCreate a tracker for a specific event of an event target.
The target to track.
The event name to track.
Track events from an event target.
Wait asynchronously for events. Useful in test code.