(ctx context.Context, client *runtimeAPIClient, handler *handlerOptions)
| 28 | } |
| 29 | |
| 30 | func doRuntimeAPILoop(ctx context.Context, client *runtimeAPIClient, handler *handlerOptions) error { |
| 31 | for { |
| 32 | invoke, err := client.next(ctx) |
| 33 | if err != nil { |
| 34 | return err |
| 35 | } |
| 36 | if err := handleInvoke(invoke, handler); err != nil { |
| 37 | return err |
| 38 | } |
| 39 | } |
| 40 | } |
| 41 | |
| 42 | // handleInvoke returns an error if the function panics, or some other non-recoverable error occurred |
| 43 | func handleInvoke(invoke *invoke, handler *handlerOptions) error { |
no test coverage detected
searching dependent graphs…