examples

command
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 26, 2015 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Execute 1000 tasks concurrently but limit maximum concurrency to 100 simultaneous goroutines.

Creates tasks t1, t2, t3 and cancels t2. Waits for them to finish and prints state information about each.

Creates the following task tree:

task1 task2

task3
task4
task5
task6
  task7
  task8

task9 task10

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL