I'm serialising some object using YAML::dump()
. Unfortunately that includes some elements that shouldn't be serialised, like locks with waiting threads sometimes.
Is there any way to exclude selected types from serialisation, or force them to be serialised as an empty object instead?