Skip to content

Commit 7a670ca

Browse files
committed
Fix argument order in CompletionStage interface
1 parent 6f72dbc commit 7a670ca

File tree

2 files changed

+44
-44
lines changed

2 files changed

+44
-44
lines changed

src/manifold/deferred.clj

Lines changed: 42 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -93,48 +93,48 @@
9393
(thenRunAsync [this operator executor]
9494
(then-run-async this operator executor))
9595

96-
(thenCombine [this operator other]
97-
(then-combine this operator other))
98-
(thenCombineAsync [this operator other]
99-
(then-combine-async this operator other))
100-
(thenCombineAsync [this operator other executor]
101-
(then-combine-async this operator other executor))
102-
103-
(thenAcceptBoth [this operator other]
104-
(then-accept-both this operator other))
105-
(thenAcceptBothAsync [this operator other]
106-
(then-accept-both-async this operator other))
107-
(thenAcceptBothAsync [this operator other executor]
108-
(then-accept-both-async this operator other executor))
109-
110-
(runAfterBoth [this operator other]
111-
(run-after-both this operator other))
112-
(runAfterBothAsync [this operator other]
113-
(run-after-both-async this operator other))
114-
(runAfterBothAsync [this operator other executor]
115-
(run-after-both-async this operator other executor))
116-
117-
(applyToEither [this operator other]
118-
(apply-to-either this operator other))
119-
(applyToEitherAsync [this operator other]
120-
(apply-to-either-async this operator other))
121-
(applyToEitherAsync [this operator other executor]
122-
(apply-to-either-async this operator other executor))
123-
124-
125-
(acceptEither [this operator other]
126-
(accept-either this operator other))
127-
(acceptEitherAsync [this operator other]
128-
(accept-either-async this operator other))
129-
(acceptEitherAsync [this operator other executor]
130-
(accept-either-async this operator other executor))
131-
132-
(runAfterEither [this operator other]
133-
(run-after-either this operator other))
134-
(runAfterEitherAsync [this operator other]
135-
(run-after-either-async this operator other))
136-
(runAfterEitherAsync [this operator other executor]
137-
(run-after-either-async this operator other executor))
96+
(thenCombine [this other operator]
97+
(then-combine this other operator))
98+
(thenCombineAsync [this other operator]
99+
(then-combine-async this other operator))
100+
(thenCombineAsync [this other operator executor]
101+
(then-combine-async this other operator executor))
102+
103+
(thenAcceptBoth [this other operator]
104+
(then-accept-both this other operator))
105+
(thenAcceptBothAsync [this other operator]
106+
(then-accept-both-async this other operator))
107+
(thenAcceptBothAsync [this other operator executor]
108+
(then-accept-both-async this other operator executor))
109+
110+
(runAfterBoth [this other operator]
111+
(run-after-both this other operator))
112+
(runAfterBothAsync [this other operator]
113+
(run-after-both-async this other operator))
114+
(runAfterBothAsync [this other operator executor]
115+
(run-after-both-async this other operator executor))
116+
117+
(applyToEither [this other operator]
118+
(apply-to-either this other operator))
119+
(applyToEitherAsync [this other operator]
120+
(apply-to-either-async this other operator))
121+
(applyToEitherAsync [this other operator executor]
122+
(apply-to-either-async this other operator executor))
123+
124+
125+
(acceptEither [this other operator]
126+
(accept-either this other operator))
127+
(acceptEitherAsync [this other operator]
128+
(accept-either-async this other operator))
129+
(acceptEitherAsync [this other operator executor]
130+
(accept-either-async this other operator executor))
131+
132+
(runAfterEither [this other operator]
133+
(run-after-either this other operator))
134+
(runAfterEitherAsync [this other operator]
135+
(run-after-either-async this other operator))
136+
(runAfterEitherAsync [this other operator executor]
137+
(run-after-either-async this other operator executor))
138138

139139
(thenCompose [this operator]
140140
(then-compose this operator))

test/manifold/deferred_stage_test.clj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,10 @@
4343
(fn [^CompletionStage this operator _]
4444
(.thenApply this operator))
4545
:async
46-
(fn [this operator _]
46+
(fn [^CompletionStage this operator _]
4747
(.thenApplyAsync this operator))
4848
:with-executor
49-
(fn [this operator executor]
49+
(fn [^CompletionStage this operator executor]
5050
(.thenApplyAsync this operator executor))}
5151

5252
:interface fn->Function

0 commit comments

Comments
 (0)