File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -34,8 +34,8 @@ module Observation =
3434 ( subscriptionAddress, unsubscribe, world)
3535 { ObserverAddress = observerAddress; Subscribe = subscribe }
3636
37- /// Handle events in an observation with the given 'handleEvent' procedure.
38- let using handleEvent ( observation : Observation < 'a , 'o >) =
37+ /// React to an observation with the given 'handleEvent' procedure.
38+ let react handleEvent ( observation : Observation < 'a , 'o >) =
3939 let subscribe = fun world ->
4040 let subscriptionKey = World.makeSubscriptionKey ()
4141 let subscriptionAddress = ntoa< 'a> <| acstring subscriptionKey
@@ -233,7 +233,7 @@ module Observation =
233233 /// returning both an unsubscription procedure as well as the world as augmented with said
234234 /// subscription.
235235 let subscribeWithUnsub handleEvent observation world =
236- observation |> using handleEvent |> subscribeWithUnsub2 <| world
236+ observation |> react handleEvent |> subscribeWithUnsub2 <| world
237237
238238 /// Subscribe an observation, handling each event with the given 'handleEvent' procedure.
239239 let subscribe handleEvent observation world =
You can’t perform that action at this time.
0 commit comments