Skip to content

Commit f1dff05

Browse files
authored
Avoid object creation (#250)
1 parent ffeab78 commit f1dff05

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/SwiftQueue/Constraint+Deadline.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ internal final class DeadlineConstraint: JobConstraint {
3737
return true
3838
}
3939

40-
operation.dispatchQueue.runAfter(delay.timeIntervalSince(Date()), callback: { [weak operation] in
40+
operation.dispatchQueue.runAfter(delay.timeIntervalSinceNow, callback: { [weak operation] in
4141
guard let ope = operation else { return }
4242
guard !ope.isFinished else { return }
4343

0 commit comments

Comments
 (0)