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{})
| 218 | // t, _ := f.Task(...) |
| 219 | // _, err := taskqueue.Add(c, t, "") |
| 220 | func (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. |