Skip to content

Commit

Permalink
Americanise spelling
Browse files Browse the repository at this point in the history
  • Loading branch information
earthboundkid committed Aug 4, 2023
1 parent a0841f5 commit f76ecf0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Flowmatic requires Go 1.20+.
- Handles a variety of concurrency problems such as heterogenous task groups, homogenous execution of a task over a slice, and dynamic work spawning
- Aggregates errors
- Properly propagates panics across goroutine boundaries
- Has helpers for context cancellation
- Has helpers for context cancelation
- Few dependencies
- Good test coverage

Expand Down Expand Up @@ -91,9 +91,9 @@ err := errors.Join(errs...)
</tr>
</table>

To create a context for tasks that is cancelled on the first error,
To create a context for tasks that is canceled on the first error,
use `flowmatic.All`.
To create a context for tasks that is cancelled on the first success,
To create a context for tasks that is canceled on the first success,
use `flowmatic.Race`.

```go
Expand Down
2 changes: 1 addition & 1 deletion all.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
// All runs each task concurrently
// and waits for them all to finish.
// Each task receives a child context
// which is cancelled once one task returns an error or panics.
// which is canceled once one task returns an error or panics.
// All returns nil if all tasks succeed.
// Otherwise,
// All returns a multierror containing the errors encountered.
Expand Down
2 changes: 1 addition & 1 deletion race.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
// Race runs each task concurrently
// and waits for them all to finish.
// Each function receives a child context
// which is cancelled once one function has successfully completed or panicked.
// which is canceled once one function has successfully completed or panicked.
// Race returns nil
// if at least one function completes without an error.
// If all functions return an error,
Expand Down

0 comments on commit f76ecf0

Please sign in to comment.