We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 78aed83 commit 69dcb84Copy full SHA for 69dcb84
src/Control/Monad/Aff/Var.purs
@@ -40,7 +40,7 @@ module Control.Monad.Aff.Var
40
makeVar' a = do
41
v <- makeVar
42
putVar v a
43
- return $ v
+ return v
44
45
-- | Takes the next value from the asynchronous variable.
46
foreign import takeVar """
@@ -71,6 +71,9 @@ module Control.Monad.Aff.Var
71
return function(error) {
72
return function(success) {
73
return function() {
74
+ console.log("putting " + a + " into var: ");
75
+ console.log(avar);
76
+
77
if (avar.error !== undefined) {
78
error(avar.error)();
79
} else if (avar.consumers.length == 0) {
0 commit comments