onResume method

  1. @override
Future<bool> onResume()
override

Callback when this executor is resumed. Returns true if successfully resumed, false otherwise.

Implementation

@override
Future<bool> onResume() async {
  // when an app task is resumed simply put it on the queue
  await AppTaskController().enqueue(this);
  return true;
}