getTopKAsync method

Future<int> getTopKAsync()

Implementation

Future<int> getTopKAsync() async {
  final rval =
      cvRunAsync<int>((callback) => cffi.FaceDetectorYN_GetTopK_Async(ref, callback), (c, p) {
    final rval = p.cast<ffi.Int>().value;
    calloc.free(p);
    return c.complete(rval);
  });
  return rval;
}