コード例 #1
0
ファイル: playlist.py プロジェクト: bancran/pyspotify
    def load(self, timeout=None):
        """Block until the playlist's data is loaded.

        After ``timeout`` seconds with no results :exc:`~spotify.Timeout` is
        raised. If ``timeout`` is :class:`None` the default timeout is used.

        The method returns ``self`` to allow for chaining of calls.
        """
        return utils.load(self._session, self, timeout=timeout)
コード例 #2
0
ファイル: search.py プロジェクト: cwallac/SpotifyWebApp
    def load(self, timeout=None):
        """Block until the search's data is loaded.

        After ``timeout`` seconds with no results :exc:`~spotify.Timeout` is
        raised. If ``timeout`` is :class:`None` the default timeout is used.

        The method returns ``self`` to allow for chaining of calls.
        """
        return utils.load(self._session, self, timeout=timeout)
コード例 #3
0
    def load(self, timeout=None):
        """Block until the search's data is loaded.

        After ``timeout`` seconds with no results :exc:`~spotify.Timeout` is
        raised. If ``timeout`` is :class:`None` the default timeout is used.

        The method returns ``self`` to allow for chaining of calls.
        """
        # TODO Replace with self.complete_event.wait(timeout) when we have a
        # thread that takes care of all ``process_events()`` calls for us.
        return utils.load(self, timeout=timeout)
コード例 #4
0
ファイル: test_loadable.py プロジェクト: tupy/pyspotify
 def load(self, timeout=None):
     return load(self._session, self, timeout=timeout)
コード例 #5
0
 def load(self, timeout=None):
     return load(self, timeout=timeout)