Skip to content
This repository has been archived by the owner on Jun 5, 2019. It is now read-only.

GustavoKatel/syncevent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

SyncEvent

GoDoc

SyncEvent synchronizes goroutines with a set-reset flag style

type SyncEvent interface {
	// IsSet returns true if set has been called
	IsSet() bool

	// Set sets the flag to true and awake pending goroutines
	Set()

	// Wait waits this flag to be set
	Wait()

	// Reset resets this flag
	Reset()
}