Releases a handle to an event. As soon as func completes, the internal resources associated with the event are freed. All events should eventually be either detached or canceled to assure that system resources are released.
void evDetach(Event event)