isCalculationRunning static method

bool isCalculationRunning(
  1. TaskHandler taskHandler
)

Check if there is route calculation in progress associated with the specified task handler.

Parameters

  • IN taskHandler The task handler associated with the route calculation to be canceled.

Returns

  • true if the route calculation is in progress, false otherwise.

Throws

  • An exception if it fails.

Implementation

static bool isCalculationRunning(final TaskHandler taskHandler) {
  taskHandler as TaskHandlerImpl;

  final OperationResult result = staticMethod(
    'RoutingService',
    'isCalculationRunning',
    args: taskHandler.id,
  );
  return result['result'];
}