Goroutines and WaitGroup
Start lightweight threads with go and wait for them with sync.WaitGroup.
Открыть урок →Выполняйте работу одновременно: горутины, каналы, select, WaitGroup, Mutex, пулы воркеров и context.
Попробовать Go онлайнStart lightweight threads with go and wait for them with sync.WaitGroup.
Открыть урок →Wait on several channels at once and stop waiting after a timeout.
Открыть урок →Let several goroutines change one value safely with sync.Mutex.
Открыть урок →Stop work that takes too long or is no longer needed with context.
Открыть урок →