Skip to content

Conversation

@LK-Simon
Copy link
Contributor

Implemented .youngerThan Event Interest

  • EventListeners now support the .youngerThan interested, specifying a maximumAge parameter to define (in nanoseconds) the maximum age an Eventable can be (from the point of Dispatch) before the Listener is no longer interested in it.
  • EventReceiving types (all of them) now also support the above behaviour.
  • README.md has been updated to provide an example of how to specify an EventListener with a Maximum Age constraint.

- `EventListener`s now support the `.youngerThan` interested, specifying a `maximumAge` parameter to define (in *nanoseconds*) the maximum age an `Eventable` can be (from the point of Dispatch) before the Listener is no longer interested in it.
- `EventReceiving` types (all of them) now also support the above behaviour.
- README.md has been updated to provide an example of how to specify an `EventListener` with a *Maximum Age* constraint.
Changed Swift Tools version from 5.7 to 5.6
@LK-Simon LK-Simon merged commit 9c0924c into main Aug 30, 2022
@LK-Simon LK-Simon deleted the event_younger_than branch August 30, 2022 13:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants