Skip to content

Commit 9b41798

Browse files
committed
Renamed Observation.using to react.
Former-commit-id: eabe5c8
1 parent cef8ca5 commit 9b41798

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Nu/Nu/Nu/Observation.fs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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 =

0 commit comments

Comments
 (0)