For bug 244825 (supporting IPC::Connection on other threads), we need a way to reference an object that is either the main RunLoop, or a WorkerOrWorkletThread. This adds 'SerialFunctionDispatcher', a stronger version of 'FunctionDispatcher' that guarantees that Functions will be executed serially.
<rdar://problem/101002156>
Pull request: https://github.com/WebKit/WebKit/pull/5214
Committed 255844@main (88975f1a7664): <https://commits.webkit.org/255844@main> Reviewed commits have been landed. Closing PR #5214 and removing active labels.