def with_fork_context(self, func):
    """See the rustdocs for `scheduler_fork_context` for more information."""
    res = self._native.lib.scheduler_fork_context(self._scheduler, Function(self._to_key(func)))
    return self._raise_or_return(res)
See the rustdocs for `scheduler_fork_context` for more information.