github.com/haraldrudell/parl@v0.4.176/g0/factory.go (about)

     1  /*
     2  © 2022–present Harald Rudell <harald.rudell@gmail.com> (https://haraldrudell.github.io/haraldrudell/)
     3  ISC License
     4  */
     5  
     6  package g0
     7  
     8  import (
     9  	"context"
    10  
    11  	"github.com/haraldrudell/parl"
    12  )
    13  
    14  var GoGroupFactory parl.GoFactory = &goGroupFactory{}
    15  
    16  type goGroupFactory struct{}
    17  
    18  func (f *goGroupFactory) NewGoGroup(ctx context.Context, onFirstFatal ...parl.GoFatalCallback) (goGroup parl.GoGroup) {
    19  	return NewGoGroup(ctx, onFirstFatal...)
    20  }