MCPcopy Create free account
hub / github.com/golang/appengine / Call

Method Call

delay/delay.go:220–227  ·  view source on GitHub ↗

Call invokes a delayed function. err := f.Call(c, ...) is equivalent to t, _ := f.Task(...) _, err := taskqueue.Add(c, t, "")

(c context.Context, args ...interface{})

Source from the content-addressed store, hash-verified

218// t, _ := f.Task(...)
219// _, err := taskqueue.Add(c, t, "")
220func (f *Function) Call(c context.Context, args ...interface{}) error {
221 t, err := f.Task(args...)
222 if err != nil {
223 return err
224 }
225 _, err = taskqueueAdder(c, t, queue)
226 return err
227}
228
229// Task creates a Task that will invoke the function.
230// Its parameters may be tweaked before adding it to a queue.

Callers 11

TestInvalidFunctionFunction · 0.45
TestBadArgumentsFunction · 0.45
TestRunningFunctionFunction · 0.45
TestCustomTypeFunction · 0.45
TestRunningVariadicFunction · 0.45
TestErrorFunctionFunction · 0.45
TestDuplicateFunctionFunction · 0.45
TestStandardContextFunction · 0.45
runFuncFunction · 0.45

Calls 1

TaskMethod · 0.95

Tested by 10

TestInvalidFunctionFunction · 0.36
TestBadArgumentsFunction · 0.36
TestRunningFunctionFunction · 0.36
TestCustomTypeFunction · 0.36
TestRunningVariadicFunction · 0.36
TestErrorFunctionFunction · 0.36
TestDuplicateFunctionFunction · 0.36
TestStandardContextFunction · 0.36