-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix #133 #136
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
|
||
const event = new jsExport.OfflineAudioCompletionEvent(rawEvent.type, { | ||
renderedBuffer: this.#renderedBuffer, | ||
}); | ||
|
||
propagateEvent(this, event); | ||
// delay event propagation to next tick that it is executed after startRendering fulfills | ||
setTimeout(() => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think setTimeout(.., 0)
can be expressed more efficiently with setImmediate
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yup thanks, sure I have been misleaded by mdn which marks it deprecated but it doesn't stand in node context
@@ -1,4 +1,6 @@ | |||
#![deny(clippy::all)] | |||
// @todo - properly fix this clippy issue | |||
#![allow(clippy::zero_repeat_side_effects)] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
meh, I think this is a napi issue causing false positive in clippy
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yup I agree, let's see if the problem disappear in a future napi-rs release, I opened an issue to not forget that
cf. #137
No description provided.