fix: what
This commit is contained in:
parent
39276c2546
commit
52dd297c9c
@ -120,9 +120,11 @@ foreach stream cb = do
|
|||||||
alreadyHaveCols <- liftEffect $ getOrInitColumnsMap stream
|
alreadyHaveCols <- liftEffect $ getOrInitColumnsMap stream
|
||||||
when (isNothing alreadyHaveCols)
|
when (isNothing alreadyHaveCols)
|
||||||
$ liftAff
|
$ liftAff
|
||||||
$ makeAff \res -> pure mempty <* flip (Event.once columnsH) stream $ const do
|
$ makeAff \res -> do
|
||||||
void $ getOrInitColumnsMap stream
|
stop <- flip (Event.once columnsH) stream $ const do
|
||||||
res $ Right unit
|
void $ getOrInitColumnsMap stream
|
||||||
|
res $ Right unit
|
||||||
|
pure $ Canceler $ const $ liftEffect stop
|
||||||
|
|
||||||
liftAff $ makeAff \res -> do
|
liftAff $ makeAff \res -> do
|
||||||
removeDataListener <- flip (Event.on dataH) stream \row -> launchAff_ $ delay (wrap 0.0) <* liftEffect do
|
removeDataListener <- flip (Event.on dataH) stream \row -> launchAff_ $ delay (wrap 0.0) <* liftEffect do
|
||||||
|
Loading…
Reference in New Issue
Block a user