Skip to content
This repository has been archived by the owner on Jul 5, 2024. It is now read-only.

Commit

Permalink
revert readme changes until Consumer/Producer ships
Browse files Browse the repository at this point in the history
  • Loading branch information
mattmassicotte authored Feb 7, 2019
1 parent 55ee3c4 commit 44b435d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,15 +92,15 @@ class MyAsyncOperation: BaseOperation {
}
```

**ProducerOperation**
**ResultOperation**

A `BaseOperation` subclass that yields a value. Includes a completion handler to access the value.

```swift
import Foundation
import OperationPlus

class MyValueOperation: ProducerOperation<Int> {
class MyValueOperation: ResultOperation<Int> {
public override func main() {
// do your computation

Expand All @@ -117,15 +117,15 @@ op.resultCompletionBlock = { (value) in
}
```

**AsyncProducerOperation**
**AsyncResultOperation**

A variant of `ProducerOperation` that may produce a value after the `main` method has completed executing.
A variant of `ResultOperation` that may produce a value after the `main` method has completed executing.

```swift
import Foundation
import OperationPlus

class MyAsyncOperation: AsyncProducerOperation<Int> {
class MyAsyncOperation: AsyncResultOperation<Int> {
public override func main() {
DispatchQueue.global().async {
if self.checkForCancellation() {
Expand Down

0 comments on commit 44b435d

Please sign in to comment.