5#ifndef RUNTIME_VM_PORT_H_
6#define RUNTIME_VM_PORT_H_
43 bool before_events =
false);
70 Entry() : handler(
nullptr) {}
static Dart_Port GetOriginId(Dart_Port id)
static void DebugDumpForMessageHandler(MessageHandler *handler)
static bool PostMessage(std::unique_ptr< Message > message, bool before_events=false)
static Isolate * GetIsolate(Dart_Port id)
static void PrintPortsForMessageHandler(MessageHandler *handler, JSONStream *stream)
static bool ClosePort(Dart_Port id, MessageHandler **message_handler=nullptr)
static bool IsReceiverInThisIsolateGroupOrClosed(Dart_Port receiver, IsolateGroup *group)
static void ClosePorts(MessageHandler *handler)
static Dart_Port CreatePort(MessageHandler *handler)
std::function< void(const T &message, const MessageReply< T > &reply)> MessageHandler