github.com/haraldrudell/parl@v0.4.176/g0/go-parent.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 // goParent are the methods provided to a Go thread by its parent GoGroup thread-group 15 type goParent interface { 16 ConsumeError(goError parl.GoError) 17 FromGoGo() (g parl.Go) 18 FromGoSubGo(onFirstFatal ...parl.GoFatalCallback) (g parl.SubGo) 19 FromGoSubGroup(onFirstFatal ...parl.GoFatalCallback) (g parl.SubGroup) 20 GoDone(g parl.Go, err error) 21 UpdateThread(goEntityID parl.GoEntityID, threadData *ThreadData) 22 Cancel() 23 Context() (ctx context.Context) 24 }