@serialized
    def add_tracks(self, tracks, index=None):
        if isinstance(tracks, spotify.Track):
            tracks = [tracks]
        if index is None:
            index = len(self.tracks)
        spotify.Error.maybe_raise(lib.sp_playlist_add_tracks(
            self._sp_playlist, [t._sp_track for t in tracks], len(tracks),
            index, self._session._sp_session))
A naive synchronous version of apply_async
dataset/ETHPy150Open mopidy/pyspotify/spotify/playlist.py/Playlist.add_tracks--crossover with--dataset/ETHPy150Open dask/dask/dask/async.py/apply_sync