StoreTask

The type returned from send(_:) that represents the lifecycle of the effect started from sending an action.

Store.swift:523
struct StoreTask

You can use this value to tie the effect’s lifecycle and cancellation to an asynchronous context, such as the task view modifier.

.task { await store.send(.task).finish() }

See TestStoreTask for the analog returned from TestStore.