Skip to content

Commit 19c4285

Browse files
committed
Improve a couple of comments.
1 parent 81a19ad commit 19c4285

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

ReactiveTask/Task.swift

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ private func aggregateDataReadFromPipe(pipe: Pipe) -> SignalProducer<ReadData, R
265265
}
266266

267267
public protocol TaskEventType {
268-
/// The type of values being sent on the signal.
268+
/// The type of value embedded in a `Success` event.
269269
typealias T
270270

271271
/// The resulting value, if the event is `Success`.
@@ -367,14 +367,15 @@ extension TaskEvent: CustomStringConvertible {
367367
}
368368

369369
extension SignalProducer where T: TaskEventType {
370-
371370
/// Maps the values inside a stream of TaskEvents into new SignalProducers.
372371
public func flatMapTaskEvents<U>(strategy: FlattenStrategy, transform: T.T -> SignalProducer<U, E>) -> SignalProducer<TaskEvent<U>, E> {
373372
return self.flatMap(strategy) { taskEvent in
374373
return taskEvent.producerMap(transform)
375374
}
376375
}
377376

377+
/// Ignores incremental standard output and standard error data from the given
378+
/// task, sending only a single value with the final, aggregated result.
378379
public func ignoreTaskData() -> SignalProducer<T.T, E> {
379380
return lift { $0.ignoreTaskData() }
380381
}

0 commit comments

Comments
 (0)