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?
It doesn’t sound very elegant to me, but you could extend those objects to dump as nil