We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 22893f1 commit 566b7d9Copy full SHA for 566b7d9
src/context/base.rs
@@ -100,6 +100,8 @@ pub trait BaseAudioContext {
100
/// # Errors
101
///
102
/// This method returns an Error in various cases (IO, mime sniffing, decoding).
103
+ // Use of `async fn` in public traits is discouraged as auto trait bounds cannot be specified,
104
+ // hence we use `-> impl Future + ..` instead.
105
fn decode_audio_data<R: std::io::Read + Send + Sync + 'static>(
106
&self,
107
input: R,
0 commit comments