doWork static method
Implementation
static void doWork(SendPort main) {
ReceivePort childThread = ReceivePort();
SendPort main = childThread.sendPort;
childThread.listen((message) {
//9.10 rp2收到消息
print("rp2 收到消息: $message");
});
}
static void doWork(SendPort main) {
ReceivePort childThread = ReceivePort();
SendPort main = childThread.sendPort;
childThread.listen((message) {
//9.10 rp2收到消息
print("rp2 收到消息: $message");
});
}