def foreach_rtp(self, cb):
for path in self.request('<STR_LIT>'):<EOL><INDENT>try:<EOL><INDENT>if cb(path) is not None:<EOL><INDENT>break<EOL><DEDENT><DEDENT>except Exception:<EOL><INDENT>break<EOL><DEDENT><DEDENT>
Invoke `cb` for each path in 'runtimepath'.

        Call the given callable for each path in 'runtimepath' until either
        callable returns something but None, the exception is raised or there
        are no longer paths. If stopped in case callable returned non-None,
        vim.foreach_rtp function returns the value returned by callable.