Quentin Jin
2569c9e449
Remove Playground, add ScheduleDemo target
2019-03-14 21:24:14 +08:00
QuentinJin
cba87f0f2b
Refactor `TaskCenter`
2019-03-06 23:02:05 +08:00
QuentinJin
a86902316a
Tidy
2019-03-04 22:24:02 +08:00
QuentinJin
f9ec7bc377
Rename Bucket to Cabinet
2019-03-03 23:39:21 +08:00
QuentinJin
e34def36d7
Remove `Calendar.nextDate`'s alternative implementation on linux
2019-02-17 22:28:45 +08:00
QuentinJin
db16186b90
Remove `host` feature on linux
2019-02-17 21:09:25 +08:00
QuentinJin
d457daa706
Renaming
2019-02-17 20:38:44 +08:00
QuentinJin
a25eeb2291
Rename `Bucket.append` to `add`
2019-02-17 20:20:42 +08:00
QuentinJin
c3b2343740
Make `TaskCenter` open
2019-02-17 18:44:11 +08:00
QuentinJin
cde4883743
Fixed memory leak issue with RunloopTask
2019-02-17 10:23:07 +08:00
QuentinJin
6fffeefa0f
Repleace Lock with NSLock
2019-02-17 10:06:26 +08:00
Quentin Jin
cc52ab60e7
Merge pull request #28 from Wilsonator5000/master
...
Add support for interval offsets
2018-12-28 09:25:37 +08:00
Wilson Gramer
9af9058291
Remove @autoclosure and overload with non-closure variant
...
The @autoclosure was creating issues when passing closures as value types, so it was removed an an overload was added instead.
2018-12-22 17:11:51 -05:00
Wilson Gramer
857e1c7c98
Make Plan.offset(by:) public
2018-12-22 17:06:32 -05:00
Wilson Gramer
94af7d7ff2
Add unit tests for iterator-based interval offsets
2018-12-22 16:58:15 -05:00
Wilson Gramer
867bd52555
Add iterator-based interval offsets
2018-12-22 16:45:35 -05:00
Wilson Gramer
f95a19c9e0
Revert Task-based interval offsets
2018-12-22 16:41:38 -05:00
Wilson Gramer
fcc1a03f98
Remove @autoclosure attribute
...
This was preventing functions from being passed to the offsetBy: parameter without issue, so it was removed.
2018-12-06 07:50:30 -05:00
Wilson Gramer
8684fc1151
Add test for negative interval offsets
...
Although negative interval offsets are allowed, they shouldn't make the Plan have a negative interval.
2018-12-05 16:03:38 -05:00
Wilson Gramer
46cdac7046
Make leeway of testIntervalOffset unit test a bit smaller
2018-12-05 15:21:31 -05:00
Wilson Gramer
1507d41146
Add test for interval offsets
2018-12-05 15:16:22 -05:00
Wilson Gramer
68e0d935f5
Add support for interval offsets
...
Adds the ability to offset a Task by a specific interval from its Plan, such so that the Task calculates its next run based on adding said interval to the Plan's next interval.
2018-12-05 15:07:19 -05:00
Quentin Jin
61e8fe5789
Merge pull request #26 from Wilsonator5000/master
...
Add return keyword in Plan.isNever
2018-11-28 10:39:15 +08:00
Wilson Gramer
3c87c6f47f
Add return keyword
2018-11-27 12:47:39 -05:00
Quentin Jin
3b581748a1
Merge pull request #25 from Wilsonator5000/master
...
Allow usage of arrays in addition to variadic arguments in Interval and Plan functions
2018-11-27 21:38:44 +08:00
Wilson Gramer
0499677251
Add testPassingEmptyArrays to PlanTests.allTests list
2018-11-27 08:25:55 -05:00
Wilson Gramer
b8ee7a3680
Remove Equatable (Replace == with isNever)
...
The == check was only reliable on never Plans and failed for Plans with dates or intervals, so it was removed and replaced with the reliable, single-purpose isNever() check.
2018-11-27 08:25:32 -05:00
Wilson Gramer
eb6367bf98
Add unit tests for array-based functions
2018-11-27 07:44:02 -05:00
Wilson Gramer
35419f25f6
Make Plan Equatable
...
Needed for unit tests to compare different Plan instances. The == check is based on Plan.sequence.
2018-11-27 07:43:41 -05:00
Wilson Gramer
0c13ec1f65
Add checks to array-based functions to ensure the passed arrays are not empty
2018-11-27 07:42:27 -05:00
Wilson Gramer
d18d6b6692
Allow usage of arrays in addition to variadic arguments in Interval and Plan functions
2018-11-25 18:03:15 -05:00
Quentin Jin
b0b316c033
Merge branch 'master' of https://github.com/jianstm/Schedule
2018-11-08 16:23:32 +08:00
Quentin Jin
1d9bc6f423
Update image
2018-11-08 16:20:35 +08:00
QuentinJin
42331b47bc
Update version in README
2018-10-06 21:24:06 +08:00
Quentin
5e7f4686f0
Fix CI
2018-09-29 09:53:20 +08:00
Quentin
d63e99b479
Update installation instructions
2018-09-26 13:19:44 +08:00
Quentin Jin
539d1cdb65
Merge pull request #18 from jianstm/1.x
...
Schedule 1.0.0
2018-09-26 13:11:26 +08:00
Quentin
73503aa8c7
Update README
2018-09-26 12:35:02 +08:00
Quentin
8217661e35
Fix swift package manager
2018-09-26 11:56:27 +08:00
QuentinJin
83ceefb708
Update README for 1.0.0
2018-09-26 00:03:20 +08:00
QuentinJin
0df2a0761f
Project structure
2018-09-25 21:04:55 +08:00
QuentinJin
a2d88407aa
Remove top comments
2018-09-25 20:18:11 +08:00
Quentin
d39bfd34c8
Improve documentation
2018-09-25 18:07:30 +08:00
QuentinJin
d7439eef43
Better naming
2018-09-24 23:11:13 +08:00
QuentinJin
4a44b9a702
Simplify atomic
2018-09-24 20:38:54 +08:00
QuentinJin
926989f851
Optimize bucket performance
2018-09-24 20:21:34 +08:00
QuentinJin
aba3fd69ce
Rename schedule to plan to avoid namespace confliction
2018-09-24 00:34:55 +08:00
QuentinJin
289922b445
Add description for all public types
2018-09-23 23:01:40 +08:00
QuentinJin
4242f84f07
Remove `ParasiticTask`, now `host` is a built-in parameter for all tasks.
2018-09-23 12:24:00 +08:00
QuentinJin
95ab16f3f7
Add RunLoopTask
2018-09-22 22:04:13 +08:00