Skip to content

Commit 1b69b2d

Browse files
committed
feat: API improvements
1 parent 0cb81fc commit 1b69b2d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Sources/FunctionalClosures/Handler.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,10 @@ public class Handler<Input> {
6565
public func callAsFunction(_ input: Input) {
6666
projectedValue?(input)
6767
}
68+
69+
public func callAsFunction() where Input == Void {
70+
projectedValue?(())
71+
}
6872
}
6973

7074
// MARK: Typed handlers

0 commit comments

Comments
 (0)