(options: GetSongOptions, setter: impl Set<Value = Vec<Song>> + 'static)
| 36 | #[tracing::instrument(level = "debug", skip(options, setter))] |
| 37 | #[cfg(not(feature = "mock"))] |
| 38 | pub 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")] |
no test coverage detected