From 8ccf277374a48ae84d6f0e7a0dba738fdcd0dcca Mon Sep 17 00:00:00 2001 From: kodjomoustapha <107993382+kodjodevf@users.noreply.github.com> Date: Wed, 17 Apr 2024 10:45:28 +0100 Subject: [PATCH] - --- lib/ffi/torrent_server_ffi.dart | 6 ------ 1 file changed, 6 deletions(-) diff --git a/lib/ffi/torrent_server_ffi.dart b/lib/ffi/torrent_server_ffi.dart index d4128d9..faf3e26 100644 --- a/lib/ffi/torrent_server_ffi.dart +++ b/lib/ffi/torrent_server_ffi.dart @@ -6,11 +6,6 @@ import 'package:ffi/ffi.dart'; import 'generated_bindings.dart'; -/// A very short-lived native function. -/// -/// For very short-lived functions, it is fine to call them on the main isolate. -/// They will block the Dart execution while running the native function, so -/// only do this for native functions which are guaranteed to be short-lived. Future start(String mcfg) async { var completer = Completer(); var res = _bindings.Start(mcfg.toNativeUtf8().cast()); @@ -37,5 +32,4 @@ final DynamicLibrary _dylib = () { throw UnsupportedError('Unknown platform: ${Platform.operatingSystem}'); }(); -/// The bindings to the native functions in [_dylib]. final TorrentLibrary _bindings = TorrentLibrary(_dylib);