operator - method

bool operator -(
  1. EventHandler<T> handler
)

Removes a handler previously added to this Event.

Uses "-" as an alternative syntax to the unsubscribe method to remove a handler from this Event.

Returns true if handler was in list, false otherwise. This method has no effect if the handler is not in the list.

Implementation

bool operator -(EventHandler<T> handler) {
  return unsubscribe(handler);
}