Skip to content

Commit e2cd5ff

Browse files
Bump version
1 parent faca7d1 commit e2cd5ff

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ A Dart utility package for easy async task cancellation.
1515

1616
### CancellationToken
1717

18-
The standard CancellationToken can be used to manually cancel tasks. When `.cancel()` is called, all cancellables using the token will be cancelled. By default, async tasks cancelled with a CancellationToken will throw a CancelledException. You can pass a custom exception using `.cancel(CustomException())` to change this.
18+
The standard CancellationToken for manually cancelling tasks. When `.cancel()` is called, all cancellables using the token will be cancelled. By default, async tasks cancelled with a CancellationToken will throw a CancelledException. You can pass a custom exception using `.cancel(CustomException())` to change this.
1919

2020
### TimeoutCancellationToken
2121

22-
To cancel tasks after a certain amount of time, you can use a TimeoutCancellationToken in place of the standard CancellationToken. By default, async tasks will be cancelled with a TimeoutException when the timeout duration ends. You can pass a custom exception by using the `timeoutException` parameter.
22+
To cancel tasks after a certain amount of time, you can use a TimeoutCancellationToken. By default, async tasks will be cancelled with a TimeoutException when the timeout duration ends. You can pass a custom exception by using the `timeoutException` parameter.
2323

2424
When a TimeoutCancellationToken is created, the timer will begin immediately. To only start the timer when the token is attached to a task, set the `lazyStart` parameter to true.
2525

pubspec.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: cancellation_token
22
description: Easy async task cancellation for tasks using cancellation tokens in Dart.
3-
version: 1.3.4
3+
version: 1.4.0
44
repository: https://github.com/jonathanpetercole/dart-cancellation-token
55

66
environment:
@@ -11,5 +11,5 @@ dependencies:
1111

1212
dev_dependencies:
1313
lints: ^1.0.0
14-
test: ^1.20.1
15-
fake_async: ^1.2.0
14+
test: ^1.21.1
15+
fake_async: ^1.3.0

0 commit comments

Comments
 (0)