Quentin Jin
4bb334fda4
Improve the implementaion of task center
2019-07-11 11:05:46 +08:00
Quentin Jin
66e6c54aa4
Use nested type `BagKey.Gen`
2019-04-18 10:11:41 +08:00
Quentin Jin
3cdc25fb97
Update ci
2019-04-06 19:36:20 +08:00
Quentin Jin
3100e6b8fa
Update README
2019-04-06 19:02:07 +08:00
Quentin Jin
328439049a
lint
2019-04-06 10:43:19 +08:00
Quentin Jin
a3fdd633a6
redesign task's api
2019-04-06 00:30:13 +08:00
Quentin Jin
a88a95ce13
Move `task.taskCenter` management to Task.swift
2019-04-04 18:10:24 +08:00
Quentin Jin
3358f38ee9
Improve tests
2019-04-04 14:54:46 +08:00
Quentin Jin
d4f25b6031
Make diction of docs and api naming more corresponding with official api.
2019-04-04 12:34:34 +08:00
Quentin Jin
4cd608d123
lint
2019-04-03 18:07:25 +08:00
Quentin Jin
655c716b62
Use `canImport(ObjectiveC)` instead of `os(macOS) || os(iOS) || os(tvOS) || os(watchOS)`
2019-04-03 17:51:14 +08:00
Quentin Jin
34cac2aab8
Naming & Docs
2019-03-19 22:54:16 +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
Wilson Gramer
94af7d7ff2
Add unit tests for iterator-based interval offsets
2018-12-22 16:58:15 -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
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
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
95ab16f3f7
Add RunLoopTask
2018-09-22 22:04:13 +08:00
Quentin
5c5e931f7c
Make Interval conform Comparable
2018-08-27 13:33:10 +08:00
Quentin
5daabf3701
Add polyfill for Calender's `nextDate` method on linux
...
Remove autoupdatingCurrent, it's unavailable on linux
2018-08-27 12:50:54 +08:00
QuentinJin
11f5d1f59d
Add more tests for Task
2018-08-26 22:58:06 +08:00
QuentinJin
92f0c3894a
Fix issues about weekday & monthday calculating
2018-08-26 22:37:51 +08:00
QuentinJin
fa17c31a88
Add DeinitObserver for ParasiticTask on Darwin
2018-08-26 21:49:21 +08:00
QuentinJin
3de74c73a2
Remove WeakSet, rename TaskCenter to TaskHub
2018-08-26 19:05:24 +08:00
QuentinJin
05617caee6
Add "compare" method for Interval, and more tests
2018-08-26 17:56:07 +08:00
QuentinJin
2654dfbf24
Add tests for `zeroClock` and `clampedToInt` in Extensions
2018-08-26 16:31:58 +08:00
QuentinJin
4172b62d90
Rename `add` to `append` of Bucket
2018-08-26 16:10:05 +08:00
QuentinJin
e6016c3dbe
Add `purify` method for WeakSet
2018-08-26 15:34:28 +08:00
Quentin
6a9e2ba863
Fix issues about building on linux
2018-08-22 13:12:39 +08:00
QuentinJin
4ffd4a0931
Improve comments and README
2018-08-12 17:59:36 +08:00
QuentinJin
6a6d49ea8d
tinker
2018-07-29 20:36:30 +08:00
QuentinJin
9fa0031e27
Improve test/doc/api
2018-07-27 22:28:27 +08:00