Skip to content
/ megach Public

An efficient self-expanding channel written Go

Notifications You must be signed in to change notification settings

ds0nt/megach

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

megach

A self-expanding channel written Go that will never block on send.

import "context"
  
ctx := context.Background()
ch := NewMegaChannel()
ch.Run(ctx)

for i := 0; i < 100; i++ {
	ch.Send <- i
}

for i := 0; i < 100; i++ {
	fmt.Println(<-ch.Recv)
}  

About

An efficient self-expanding channel written Go

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages