Skip to content

just once? no, when appear many it run once, but it can run many times

License

Notifications You must be signed in to change notification settings

lee123456780/count_once

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

countOnce

just once? no, when appear many it run once, but it can run many times

灵感来源

参考sync.once 只能发生一次,此包提供了并发时发生一次,多次调用仍有效

code start

queueMutex = utils.NewQueueMutex()
queueMutex.Do(func() {
  do something...
}

About

just once? no, when appear many it run once, but it can run many times

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages