Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,14 @@ You can create instance through one of this static methods.
`static fail: (any) => Progress<any>;`

```javascript
const success = Progress.success({});
const success = Progress.success({}); // Progress.success(null) means the request succeeded and the result was null.
const fail = Progress.fail({a: '1'});
const none = Progress.none; // This represents the Fetch/async action has not been started yet.
const inProgress = Progress.inProgress; // This represents the Fetch/async action is not yet completed/in Progress.
```

Once instance is created there is no way to change object status (e.g. success or failed).
Two more statuses are available through static properties `Progress.inProgress` and `Progress.none`.
Basically those properties is `Progress` instances with predefined statuses.
The 2 static properties `Progress.inProgress` and `Progress.none` are basically those properties is `Progress` instances with predefined statuses.


### Instance properties
Expand Down