Function CustomEventTarget.postEvent

post event to handle in UI thread (this method can be used from background thread)

abstract void postEvent(
  CustomEvent event
);