We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b70c522 commit 7da5a74Copy full SHA for 7da5a74
Loop/Public/Loop.swift
@@ -62,7 +62,9 @@ public final class Loop<State, Event> {
62
)
63
}
64
65
- public func eraseEventType() -> Loop<State, Never> {
+ /// Create a scoped `Loop` from `self` which will not accept any input from `Loop.send(_:)`. Note that sending
66
+ /// events on `self` through `Loop.send(_:)` remains unaffected.
67
+ public func ignoringInput() -> Loop<State, Never> {
68
return Loop<State, Never>(
69
box: box.scoped(to: { $0 }, event: { _ in fatalError() })
70
0 commit comments