MCPcopy Create free account
hub / github.com/Moosync/Moosync / get_songs_by_option

Function get_songs_by_option

src/utils/db_utils.rs:38–43  ·  view source on GitHub ↗
(options: GetSongOptions, setter: impl Set<Value = Vec<Song>> + 'static)

Source from the content-addressed store, hash-verified

36#[tracing::instrument(level = "debug", skip(options, setter))]
37#[cfg(not(feature = "mock"))]
38pub fn get_songs_by_option(options: GetSongOptions, setter: impl Set<Value = Vec<Song>> + 'static) {
39 spawn_local(async move {
40 let songs = super::invoke::get_songs_by_options(options).await.unwrap();
41 setter.set(songs);
42 });
43}
44
45#[tracing::instrument(level = "debug", skip(options, setter))]
46#[cfg(feature = "mock")]

Callers 5

AllSongsFunction · 0.85
SingleAlbumFunction · 0.85
SinglePlaylistFunction · 0.85
SingleArtistFunction · 0.85
SingleGenreFunction · 0.85

Calls 1

setMethod · 0.80

Tested by

no test coverage detected