Clean the given closure in place.
Clean the given closure in place.
More specifically, this renders the given closure serializable as long as it does not explicitly reference unserializable objects.
the closure to clean
whether to verify that the closure is serializable after cleaning
whether to clean enclosing closures transitively