Add thread-safety warning to RunLoop::dispatch to tasks posted from a different thread.
This safety warning can eventually become an ASSERT or other hard failures.
After the safety warning is in place, we will add a new templated function for dispatching cross thread tasks that will use CrossThreadCopier (https://bugs.webkit.org/show_bug.cgi?id=158207)
Add templated form of RunLoop::dispatch for posting cross thread tasks
Figured it doesn't make sense to add the warning before adding the alternative to resolve it.
In fact, maybe the warning comes later.
I'll see how big the patches get once I'm working on this.
Doing this the way I was originally envisioning turned out to be impossible (or at least difficult beyond my ability to figure out)
I'm looking at some alternatives.
Do to the general lack of introspection and templatization of lambdas, I currently don't think there's a great solution to this.
Will leave the bug open because it's something we should do once able.