Skip to content

Commit

Permalink
README.md: add some related descriptive terms
Browse files Browse the repository at this point in the history
  • Loading branch information
creachadair committed Mar 19, 2024
1 parent 6bcd1c0 commit dafc5b5
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -230,9 +230,11 @@ start(task4) // blocks until one of the previous tasks is finished
## Solo Tasks

In some cases it is useful to start a single background task to handle an
isolated concern. For example, suppose we want to read a file into a buffer
while we take care of some other work. Rather than creating a whole group for
a single goroutine, we can create a solo task using the `Go` constructor.
isolated concern (elsewhere sometimes described as a "promise" or a "future").

For example, suppose we want to read a file into a buffer while we take care of
some other work. Rather than creating a whole group for a single goroutine, we
can create a solo task using the `Go` constructor.

```go
var data []byte
Expand Down

0 comments on commit dafc5b5

Please sign in to comment.