rscarson / rustyscript

Effortless JS integration for rust
MIT License
168 stars 18 forks source link

Convert RsAsyncFunction from `fn` to `Fn` (function pointer to trait object) #129

Closed eirikb closed 3 months ago

eirikb commented 3 months ago

This helps passing or sharing state to function of things that uses this, e.g., register_async_function. Have to be Box or else there will be Size issues.

@rscarson hopefully this doesn't break any tests - or anything else 😅

eirikb commented 3 months ago

I see you fixed this, thanks :) Closing