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