Releases: Flowduino/EventDrivenSwift
Releases · Flowduino/EventDrivenSwift
5.2.0
5.1.0
Implemented .youngerThan
Event Interest
EventListener
s now support the.youngerThan
interested, specifying amaximumAge
parameter to define (in nanoseconds) the maximum age anEventable
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.
5.0.0
- Introduced Latest-Only Listeners
- Introduced Latest-Only Receivers
dispatchTime
parameter added to all Callbacks (including Listeners) so that you can read the exact nanosecond-precise time at which each Event was Dispatched. Interface-breaking change, thus the major version increase- README.md updated to reflect all of the above
4.2.0
4.1.0
- Introduced
@EventMethod
wrapper in bothEventThread
and any class implementingEventListening
. Can now be used to register immutable Event Listener callbacks within the declaration of any class as avar
, and invoke the methodregisterListeners()
on theinit
method of said class to automatically register any@EventMethod
-decorated Listener using Reflection. - Replaced the returning of Tokens (
UUID
s) when registering an Event Listener, or an Event Callback (insideEventThread
) with an appropriateHandle
type, containing aremove()
method to unregister said Listener/Callback.
4.0.2
4.0.1
- Certain
internal
methods have been marked asopen
in order to make inheriting classes consuming the library function properly. This is due to a limitation in Swift whereby any inheriting class where the base class originates inside of a Library cannot accessinternal
members defined in the Library.
4.0.0
Version 4.0.0 introduces considerable refactoring and interface changes:
EventReceivable
is no longer a class to inherit from for your own Event Processing Threads.EventThread
is now the class to inherit from for your own Event Process Threads.- Nomenclature has been standardised throughout the library to eliminate any ambiguity between an
EventReceiver
(which is a fundamental base type for anything which receivesEventable
objects. EventPool
and all of its supporting types have been introduced as a major new feature for this release- README.MD has been fully updated to reflect all refactoring and feature changes introduced for this version.
3.0.1
EventListener
implementation completedEventCentral
updated to provide a centralisedEventListener
for global useEventable
introduces two new methods:addListener
registers an arbitrary Listener against the referencedEventable
Type and returns aUUID
token for that ListenerremoveListener
unregisters the Listener specified by itsUUID
token
2.0.0
- Introduced
UIEventReceiver
- Eliminated the need to implement a boilerplate Closure to invoke
callTypedEventCallback
in order to type-qualify anEventable
for a Callback call. This is now done internally for you. - Updated the README.MD file to reflect the above