isolatengine 0.0.3 copy "isolatengine: ^0.0.3" to clipboard
isolatengine: ^0.0.3 copied to clipboard

outdated

isolate communication engine.

Usage #

void _entry(SendPort sendPort) async {
  final receivePort = ReceivePort();
  final engine = Isolatengine(receivePort, sendPort);
  // register method
  await engine.receive();
}

void main(){
    final receivePort = ReceivePort();
    final engine = Isolatengine(receivePort);
    // register method
    await Isolate.spawn(_entry, receivePort.sendPort);
    await engine.receive();
}

And now you can call emit or deliver function. #


engine.emit("your_method", param: null);

final res = await engine.deliver("your_method", param: null);

0
likes
0
pub points
0%
popularity

Publisher

unverified uploader

isolate communication engine.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

cancelable, flutter

More

Packages that depend on isolatengine