-update api [skip ci]

This commit is contained in:
overtake
2021-03-09 11:54:18 +04:00
parent 6790b2426f
commit e310a63ecd
5 changed files with 135 additions and 46 deletions

View File

@@ -12,7 +12,7 @@ public final class ThreadPoolTask {
self.action = action
}
func execute() {
public func execute() {
if !state.cancelled.with({ $0 }) {
self.action(self.state)
}