File tree Expand file tree Collapse file tree 2 files changed +12
-12
lines changed Expand file tree Collapse file tree 2 files changed +12
-12
lines changed Original file line number Diff line number Diff line change 136
136
137
137
; ;;
138
138
139
- (defn fn->Function [function ]
139
+ (defn fn->Function [f ]
140
140
(reify java.util.function.Function
141
- (apply [_ x] (function x))))
141
+ (apply [_ x] (f x))))
142
142
143
- (defn fn->Consumer [function ]
143
+ (defn fn->Consumer [f ]
144
144
(reify java.util.function.Consumer
145
- (accept [_ x] (function x))))
145
+ (accept [_ x] (f x))))
146
146
147
147
148
- (defn fn->BiFunction [function ]
148
+ (defn fn->BiFunction [f ]
149
149
(reify java.util.function.BiFunction
150
- (apply [_ x y] (function x y))))
150
+ (apply [_ x y] (f x y))))
151
151
152
- (defn fn->BiConsumer [function ]
152
+ (defn fn->BiConsumer [f ]
153
153
(reify java.util.function.BiConsumer
154
- (accept [_ x y] (function x y))))
154
+ (accept [_ x y] (f x y))))
Original file line number Diff line number Diff line change 8
8
CompletableFuture
9
9
Executors]))
10
10
11
- (defn fn1->Runnable [function ]
11
+ (defn fn1->Runnable [f ]
12
12
(reify java.lang.Runnable
13
- (run [_] (function nil ))))
13
+ (run [_] (f nil ))))
14
14
15
- (defn fn2->Runnable [function ]
15
+ (defn fn2->Runnable [f ]
16
16
(reify java.lang.Runnable
17
- (run [_] (function nil nil ))))
17
+ (run [_] (f nil nil ))))
18
18
19
19
; ; On these tests:
20
20
; ; CompletionStage has many methods that mimic the chain, zip and alt
You can’t perform that action at this time.
0 commit comments