- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for ActorFunc (0.09 sec)
-
src/cmd/go/internal/work/action.go
// An Actor runs an action. type Actor interface { Act(*Builder, context.Context, *Action) error } // An ActorFunc is an Actor that calls the function. type ActorFunc func(*Builder, context.Context, *Action) error func (f ActorFunc) Act(b *Builder, ctx context.Context, a *Action) error { return f(b, ctx, a) } // An Action represents a single action in the action graph.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 18 15:39:17 UTC 2024 - 32.7K bytes - Viewed (0) -
src/cmd/go/internal/run/run.go
p.Internal.ExeName = src[:len(src)-len(".go")] } else { p.Internal.ExeName = path.Base(p.ImportPath) } a1 := b.LinkAction(work.ModeBuild, work.ModeBuild, p) a := &work.Action{Mode: "go run", Actor: work.ActorFunc(buildRunProgram), Args: cmdArgs, Deps: []*work.Action{a1}} b.Do(ctx, a) } // shouldUseOutsideModuleMode returns whether 'go run' will load packages in
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 19:09:38 UTC 2023 - 6.9K bytes - Viewed (0) -
src/cmd/go/internal/test/test.go
cleanAction = &work.Action{ Mode: "test clean", Actor: work.ActorFunc(builderCleanTest), Deps: []*work.Action{runAction}, Package: p, IgnoreFail: true, // clean even if test failed Objdir: testDir, } printAction = &work.Action{ Mode: "test print", Actor: work.ActorFunc(builderPrintTest), Deps: []*work.Action{cleanAction}, Package: p,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 16 14:34:32 UTC 2024 - 71.9K bytes - Viewed (0)