isolatengine 0.0.2 isolatengine: ^0.0.2 copied to clipboard
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();
}