Files
swift-nio/Sources
Franz Busch ae13d135f7 Pass RepeatedTask to its task closure (#515)
Pass the reference to RepeatedTask to its closure to allow a thread-safe cancelling.

Motivation:

With the current implementation, one has to create a reference and use a lock to thread-safely cancel the RepeatedTask. This makes the use more difficult and error-prone.

Modifications:

Added a RepeatedTask parameter to the scheduleRepeatedTask closure.

Result:

It is now possible to cancel the RepeatedTask from within the task closure.
2018-07-17 16:07:55 +01:00
..
2018-06-09 18:18:24 -07:00
2017-12-15 09:50:12 +00:00
2018-03-19 14:45:32 +01:00