Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for ActorFunc (0.07 sec)

  1. 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)
Back to top