Skip to content

Commit eeae321

Browse files
committed
Add support for Task cancellation
1 parent 2641459 commit eeae321

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Sources/PropertyBased/PropertyCheck.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,8 @@ public func propertyCheck<InputValue, ResultValue>(
119119
let actualCount = fixedRng != nil ? 1 : count
120120

121121
for _ in 0..<actualCount {
122+
guard !Task.isCancelled else { return }
123+
122124
var rng = fixedRng?.rng ?? Xoshiro()
123125
let rngCopy = rng
124126

0 commit comments

Comments
 (0)