(mode string)
| 780 | key server.BackendKey, |
| 781 | createFn func(context.Context) (int32, *flightclient.FlightExecutor, error), |
| 782 | ) (int32, *flightclient.FlightExecutor, error) { |
| 783 | if parent == nil { |
| 784 | parent = context.Background() |
| 785 | } |
| 786 | ctx, cancel := context.WithTimeout(parent, timeout) |
| 787 | defer cancel() |