code: def set_bookmarks(self, bookmarks):
          
          with (yield from self._lock):
              yield from self._set_bookmarks(bookmarks)
              self._diff_emit_update(bookmarks)
docs: Store the sequence of bookmarks `bookmarks`.
  
          Causes signals to be fired to reflect the changes.
  
          .. note:: This should normally not be used. It does not
                    mitigate the race condition between clients
                    concurrently modifying the bookmarks and may lead to
                    data loss. Use :meth:`add_bookmark`,
                    :meth:`discard_bookmark` and :meth:`update_bookmark`
                    instead. This method still has use-cases (modifying
                    the bookmarklist at large, e.g. by syncing the
                    remote store with local data).