We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 00c27d5 commit 64ae49bCopy full SHA for 64ae49b
1 file changed
src/main/java/com/jnape/palatable/lambda/io/IO.java
@@ -317,9 +317,8 @@ class Ref {
317
if (!ref.computed) {
318
return monitorSync(ref, io(() -> {
319
320
- A a = io.unsafePerformIO();
+ ref.value = io.unsafePerformIO();
321
ref.computed = true;
322
- ref.value = a;
323
}
324
})).flatMap(constantly(io(() -> ref.value)));
325
0 commit comments