isCancelled
A Boolean value that indicates whether the task should stop executing.
var isCancelled: Bool { get }
After the value of this property becomes true
, it remains true
indefinitely. There is no way to uncancel a task.
A Boolean value that indicates whether the task should stop executing.
var isCancelled: Bool { get }
s22ComposableArchitecture13TestStoreTaskV11isCancelledSbvp
What are these?73M2B
After the value of this property becomes true
, it remains true
indefinitely. There is no way to uncancel a task.
import ComposableArchitecture
The Composable Architecture (TCA, for short) is a library for building applications in a consistent and understandable way, with composition, testing, and ergonomics in mind. It can be used in SwiftUI, UIKit, and more, and on any Apple platform (iOS, macOS, tvOS, and watchOS).
struct TestStoreTask
The type returned from TestStore/send(_:assert:fileID:file:line:column:)-8f2pl
that represents the lifecycle of the effect started from sending an action.
@frozen struct Bool
A value type whose instances are either true
or false
.
init(rawValue: Task<Void, Never>?, timeout: UInt64)
func cancel() async
Cancels the underlying task and waits for it to finish.
func finish(timeout nanoseconds: UInt64? = nil, fileID: StaticString = #fileID, file filePath: StaticString = #filePath, line: UInt = #line, column: UInt = #column) async
Asserts the underlying task finished.
func finish(timeout duration: Duration, fileID: StaticString = #fileID, file filePath: StaticString = #filePath, line: UInt = #line, column: UInt = #column) async
Asserts the underlying task finished.