Skip to content

Commit

Permalink
Undid renamed of Observation.using.
Browse files Browse the repository at this point in the history
Former-commit-id: 8d33392
  • Loading branch information
bryanedds committed Jan 3, 2015
1 parent 9b41798 commit 6974f7e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Nu/Nu/Nu/Observation.fs
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ module Observation =
(subscriptionAddress, unsubscribe, world)
{ ObserverAddress = observerAddress; Subscribe = subscribe }

/// React to an observation with the given 'handleEvent' procedure.
let react handleEvent (observation : Observation<'a, 'o>) =
/// Handle events in an observation with the given 'handleEvent' procedure.
let using handleEvent (observation : Observation<'a, 'o>) =
let subscribe = fun world ->
let subscriptionKey = World.makeSubscriptionKey ()
let subscriptionAddress = ntoa<'a> <| acstring subscriptionKey
Expand Down Expand Up @@ -233,7 +233,7 @@ module Observation =
/// returning both an unsubscription procedure as well as the world as augmented with said
/// subscription.
let subscribeWithUnsub handleEvent observation world =
observation |> react handleEvent |> subscribeWithUnsub2 <| world
observation |> using handleEvent |> subscribeWithUnsub2 <| world

/// Subscribe an observation, handling each event with the given 'handleEvent' procedure.
let subscribe handleEvent observation world =
Expand Down

0 comments on commit 6974f7e

Please sign in to comment.