Skip to content

Commit

Permalink
Update list of supported functions
Browse files Browse the repository at this point in the history
  • Loading branch information
zenthangplus committed Aug 16, 2019
1 parent 6b6213b commit 2f78e09
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions README.md
Expand Up @@ -45,3 +45,32 @@ func main() {
c.WaitAllDone()
}
```

### List of supported functions

```go
package main

import "goccm"

func main() {
// Create the concurrency manager
// The first argument is the maximum number of goroutines to run concurrently.
c := goccm.New(10)

// Wait until a slot is available for the new goroutine.
c.Wait()

// Mark a goroutine as finished
c.Done()

// Wait for all goroutines are done
c.WaitAllDone()

// Close the manager manually
c.Close()

// Returns the number of goroutines which are running
c.RunningCount()
}
```

0 comments on commit 2f78e09

Please sign in to comment.