Refactor concurrent side effects
This commit is contained in:
@@ -17,7 +17,7 @@ startNewGameInSlot slot u = startSeedGame slot i u
|
||||
i = fst $ randomR (0, maxBound) (_randGen (_uvWorld u))
|
||||
|
||||
startSeedGame :: Int -> Int -> Universe -> Universe
|
||||
startSeedGame _ i = tryConcEffect True "GENERATING" (startSeedGameConc i)
|
||||
startSeedGame _ i = addSideEffect (startSeedGameConc i) "GENERATING"
|
||||
|
||||
startSeedGameConc :: Int -> IO (Universe -> Maybe Universe)
|
||||
startSeedGameConc seed = do
|
||||
|
||||
Reference in New Issue
Block a user