Skip to content
Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
48 lines (40 sloc) 1.08 KB
// Copyright 2019 and All rights reserved.
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// Unless required by applicable law or agreed to writing, software distributed
// under the License is distributed on a "AS IS" BASIS, WITHOUT WARRANTIES OR
// CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package supervisor
import (
var (
universalFuncSvcMu sync.Mutex
universalFuncSvc uint64
func funcSvcID() uint64 {
v := universalFuncSvc
return v
type funcsvc struct {
id uint64
f func(context.Context)
func (a funcsvc) Serve(ctx context.Context) {
func (a funcsvc) String() string {
return fmt.Sprintf("function service %d",
You can’t perform that action at this time.