[webkit-dev] Should we ever use std::function instead of WTF::Function?

Darin Adler darin at apple.com
Tue Jun 13 09:24:01 PDT 2017

I’ve noticed many patches switching us from std::function to WTF::Function recently, to fix problems with copying and thread safety.

Does std::function have any advantages over WTF::Function? Should we ever prefer std::function, or should we use WTF::Function everywhere in WebKit where we would otherwise use std::function?

— Darin

More information about the webkit-dev mailing list