At least one of the ports have trouble with lambda functions.. can we do something similar to what we do with the prioritizedthreadqueue instead?