execute method

Future<void> execute(
  1. Future<void> function()
)

Runs function and lets callers handle any thrown errors.

Implementation

Future<void> execute(Future<void> Function() function) {
  return function();
}