Skip to content

FRPWaitsForNeverException when running with +RTS -N #25

Description

@noughtmare

Here's my code:

import Control.FRPNow
import Control.Monad (forever)

ticks :: Now (EvStream ())
ticks = do
  (evs, cbk) <- callbackStream
  async (forever (cbk ()))
  return evs

count :: EvStream () -> Behavior (Behavior Integer)
count = foldEs (\a _ -> a + 1) 0

main :: IO ()
main = runNowMaster $ do
  t <- ticks
  sample $ do
    b <- count t
    when (fmap (> 10000) b)

I have compiled this with -threaded -rtsopts and when running it with +RTS -N it gives me a FRPWaitsForNeverException while it clearly doesn't wait for never. Running it without +RTS -N works just fine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions