Skip to content

Commit

Permalink
Minor formatting and documentation changes in Signal.init.
Browse files Browse the repository at this point in the history
  • Loading branch information
andersio committed Dec 1, 2016
1 parent 0306552 commit 2bb7d7a
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions Sources/Signal.swift
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ public final class Signal<Value, Error: Swift.Error> {
// for termination events. Specifically:
//
// `interrupted`
// It is kind of a special snowflake, as it can inadvertently be sent by
// downstream consumers as part of the `SignalProducer` mechanics.
// It can inadvertently be sent by downstream consumers as part of the
// `SignalProducer` mechanics.
//
// `completed`
// If a downstream consumer weakly references an object, invocation of
Expand All @@ -83,8 +83,7 @@ public final class Signal<Value, Error: Swift.Error> {
// the disposal would be delegated to the current sender, or
// occasionally one of the senders waiting on `sendLock`.
if let state = signal.state.swap(nil) {
terminationState = SignalTerminationState(state: state,
event: event)
terminationState = SignalTerminationState(state: state, event: event)

// Writes to `terminationState` are implicitly synchronized. So we do
// not need to guard it with locks.
Expand Down

0 comments on commit 2bb7d7a

Please sign in to comment.