resumeAsFuture method

  1. @override
ProgressResult resumeAsFuture(
  1. int handle
)
override

Resumes by creating a future for the pending call.

Implementation

@override
ProgressResult resumeAsFuture(int handle) {
  final ptr = Pointer<ffi_native.MontyHandle>.fromAddress(handle);
  final outError = calloc<Pointer<Char>>();

  try {
    final tag = ffi_native.monty_resume_as_future(ptr, outError);

    return _buildProgressResult(ptr, tag, outError.value);
  } finally {
    calloc.free(outError);
  }
}