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{})
| 225 | // t, _ := f.Task(...) |
| 226 | // _, err := taskqueue.Add(c, t, "") |
| 227 | func (f *Function) Call(c context.Context, args ...interface{}) error { |
| 228 | t, err := f.Task(args...) |
| 229 | if err != nil { |
| 230 | return err |
| 231 | } |
| 232 | _, err = taskqueueAdder(c, t, queue) |
| 233 | return err |
| 234 | } |
| 235 | |
| 236 | // Task creates a Task that will invoke the function. |
| 237 | // Its parameters may be tweaked before adding it to a queue. |