1.0.0 - moon
-
Rename struct
Schedule
toPlan
It is not wise to let a type have the same name as framework. -
Remove
ParasiticTask
Now, each constructor has thehost
parameter(default is nil). -
Add
RunLoopTask
Before 1.x, Schedule will execute tasks on a global dispatch queue when time is up by default. Now tasks will be executed on the current thread, its implementation is based on RunLoop, which means that you need to ensure that the current thread has a runloop available. So it is still recommended to use dispatch queue to construct the task.