profile.mx raw

   1  //:build !wasm
   2  
   3  package profile
   4  
   5  // Consumer side (app.wasm): send messages to this worker via supervisor.
   6  func Send(msg string) { panic("jsbridge") }
   7  // OnMessage registers a handler for messages from this worker.
   8  func OnMessage(fn func(msg string)) { panic("jsbridge") }
   9  // Worker-internal side (profile.wasm): postMessage bridge.
  10  func WorkerOnMessage(fn func(msg string)) { panic("jsbridge") }
  11  func WorkerPost(msg string)               { panic("jsbridge") }
  12  func WorkerSetTimeout(ms int32, fn func()) (n int32) { panic("jsbridge") }
  13  func WorkerClearTimeout(handle int32)     { panic("jsbridge") }
  14  func WorkerNowSeconds() (n int64) { panic("jsbridge") }
  15