Create a dispatcher targeting hwnd, with a fresh backing queue. messageId is the wake message posted to the window on post (defaults to defaultWakeMessage).
Remove and return all queued commands. Call on the UI thread.
Enqueue a command and wake the target window.
The wake message id posted to targetHwnd.
The backing queue (shared; reference type).
The window woken on post.
Pairs a CommandQueue!T with a target window. post enqueues a command and wakes the UI thread with PostMessageW; the window's WndProc responds to the wake message by calling drain and processing the result.