Skip to content

Commit b6bbb8a

Browse files
committed
Rename receipt to instance.
1 parent 54bf88f commit b6bbb8a

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

Sources/SignalProducer.swift

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -213,10 +213,10 @@ public struct SignalProducer<Value, Error: Swift.Error> {
213213
/// `Signal` commences. Both the produced `Signal` and an interrupt handle
214214
/// of the signal would be passed to the closure.
215215
public func startWithSignal(_ setup: (_ signal: Signal<Value, Error>, _ interruptHandle: Disposable) -> Void) {
216-
let receipt = core.makeInstance()
217-
setup(receipt.signal, receipt.interruptHandle)
218-
guard !receipt.interruptHandle.isDisposed else { return }
219-
receipt.observerDidSetup()
216+
let instance = core.makeInstance()
217+
setup(instance.signal, instance.interruptHandle)
218+
guard !instance.interruptHandle.isDisposed else { return }
219+
instance.observerDidSetup()
220220
}
221221
}
222222

@@ -596,10 +596,10 @@ extension SignalProducer {
596596
return SignalProducer<U, F>(SignalCore {
597597
// Transform the `Signal`, and pass through the `didCreate` side effect and
598598
// the interruptHandle.
599-
let receipt = self.core.makeInstance()
600-
return .init(signal: transform(receipt.signal),
601-
observerDidSetup: receipt.observerDidSetup,
602-
interruptHandle: receipt.interruptHandle)
599+
let instance = self.core.makeInstance()
600+
return .init(signal: transform(instance.signal),
601+
observerDidSetup: instance.observerDidSetup,
602+
interruptHandle: instance.interruptHandle)
603603
})
604604
}
605605

0 commit comments

Comments
 (0)