Skip to content

Commit 7da5a74

Browse files
committed
Rename eraseEventType to ignoringInput
1 parent b70c522 commit 7da5a74

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Loop/Public/Loop.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,9 @@ public final class Loop<State, Event> {
6262
)
6363
}
6464

65-
public func eraseEventType() -> Loop<State, Never> {
65+
/// 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> {
6668
return Loop<State, Never>(
6769
box: box.scoped(to: { $0 }, event: { _ in fatalError() })
6870
)

0 commit comments

Comments
 (0)