You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
runFrame::forallxa.HasSpiderTimelinex=>EventMxa->SpiderHostxa--TODO: This function also needs to hold the mutex
2088
-
runFrame a =SpiderHost$ask >>=\_ -> lift $do
2088
+
runFrame a =SpiderHost$do
2089
2089
let env = _spiderTimeline_eventEnv (spiderTimeline ::SpiderTimelineEnvx)
2090
2090
let go =do
2091
2091
result <- a
@@ -2126,7 +2126,7 @@ runFrame a = SpiderHost $ ask >>= \_ -> lift $ do
2126
2126
runEventM $ runHoldInits (eventEnvHoldInits env) (eventEnvDynInits env) (eventEnvMergeInits env) --TODO: Is this actually OK? It seems like it should be, since we know that no events are firing at this point, but it still seems inelegant
2127
2127
--TODO: Make sure we touch the pieces of the SwitchSubscribed at the appropriate times
2128
2128
sub <- newSubscriberSwitch subscribed
2129
-
subscription <-runReaderT (unSpiderHost (runFrame ({-# SCC "subscribeSwitch" #-} subscribe e sub))) spiderTimeline--TODO: Assert that the event isn't firing --TODO: This should not loop because none of the events should be firing, but still, it is inefficient
2129
+
subscription <- unSpiderHost $runFrame ${-# SCC "subscribeSwitch" #-} subscribe e sub --TODO: Assert that the event isn't firing --TODO: This should not loop because none of the events should be firing, but still, it is inefficient
0 commit comments