LCOV - code coverage report
Current view: top level - lib/src/utils - compute_callback.dart (source / functions) Hit Total Coverage
Test: merged.info Lines: 0 3 0.0 %
Date: 2024-07-12 20:20:16 Functions: 0 0 -

          Line data    Source code
       1             : import 'dart:async';
       2             : 
       3             : typedef ComputeCallback = Future<R> Function<Q, R>(
       4             :     FutureOr<R> Function(Q message) callback, Q message,
       5             :     {String? debugLabel});
       6             : 
       7             : // keep types in sync with [computeCallbackFromRunInBackground]
       8             : typedef ComputeRunner = Future<T> Function<T, U>(
       9             :     FutureOr<T> Function(U arg) function, U arg);
      10             : 
      11           0 : ComputeCallback computeCallbackFromRunInBackground(ComputeRunner runner) {
      12           0 :   return <U, T>(FutureOr<T> Function(U arg) callback, U arg,
      13             :           {String? debugLabel}) =>
      14           0 :       runner.call(callback, arg);
      15             : }

Generated by: LCOV version 1.14