This version of the module is deprecated: This package is deprecated. moonbit-community/proton should be preferred.
type AppCommandHostasync fn AppCommandHost::dispatch_ipc(self : AppCommandHost, request : IpcOpRequest) -> IpcOpResponseasync fn AppCommandHost::dispatch_ipc_with_context(self : AppCommandHost, context : AppCommandRequestContext, request : IpcOpRequest) -> IpcOpResponsefn[Payload : FromJson, Reply : ToJson] AppCommandHost::op(self : AppCommandHost, name : String, callback : (Payload) -> Reply raise?) -> Unit raise OpRegistrationErrorfn[Payload : FromJson, Reply : ToJson] AppCommandHost::op_async(self : AppCommandHost, name : String, callback : async (Payload) -> Reply) -> Unit raise OpRegistrationErrorfn[Payload : FromJson, Reply : ToJson] AppCommandHost::op_async_with_context(self : AppCommandHost, name : String, callback : async (AppCommandRequestContext, Payload) -> Reply) -> Unit raise OpRegistrationErrorpub struct AppCommandRequestContext {
window : Int64
tasks : TaskGroup[Unit]
wake_signal : RuntimeWakeSignal
emit_event : async (ContractRoute, String, Json) -> Unit noraise
}async fn[Payload : ToJson] AppCommandRequestContext::emit(self : AppCommandRequestContext, event : Event[Payload], payload : Payload) -> Unitasync fn AppCommandRequestContext::wait_for_wake(self : AppCommandRequestContext, revision : Int64) -> Unittype MbtProcessHostfn MbtProcessHost::dispatch(self : MbtProcessHost, request : IpcOpRequest, complete : (IpcOpResponse) -> Unit) -> Unitasync fn MbtProcessHost::dispatch_async(self : MbtProcessHost, request : IpcOpRequest) -> IpcOpResponseasync fn MbtProcessHost::dispatch_async_with_context(self : MbtProcessHost, context : AppCommandRequestContext, request : IpcOpRequest) -> IpcOpResponsefn MbtProcessHost::dispatch_json(self : MbtProcessHost, raw : String, complete : (IpcOpResponse) -> Unit) -> Unitfn[Payload : FromJson, Reply : ToJson] MbtProcessHost::op(self : MbtProcessHost, name : String, callback : (Payload) -> Reply raise?) -> Unit raise OpRegistrationErrorfn[Payload : FromJson, Reply : ToJson] MbtProcessHost::op_async(self : MbtProcessHost, name : String, callback : async (Payload) -> Reply) -> Unit raise OpRegistrationErrorfn[Payload : FromJson, Reply : ToJson] MbtProcessHost::op_async_with_context(self : MbtProcessHost, name : String, callback : async (AppCommandRequestContext, Payload) -> Reply) -> Unit raise OpRegistrationErrortype ResourceTable[T]fn moonbit_global_name() -> Stringfn moonbit_op_binding_name() -> String