executeNormal<S, E extends Object> method
- NormalTask<
S, E> task
Execute a normal ffi call. Usually called by generated code instead of manually called.
Implementation
Future<S> executeNormal<S, E extends Object>(NormalTask<S, E> task) {
final completer = Completer<dynamic>();
final SendPort sendPort = singleCompletePort(completer);
task.callFfi(sendPort.nativePort);
return completer.future.then(task.codec.decodeObject);
}