-
Notifications
You must be signed in to change notification settings - Fork 248
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
rpc: stabilize chainhead backend #1802
Conversation
subxt/src/backend/chain_head/mod.rs
Outdated
/// On native this is spawned on the tokio runtime. | ||
/// On web this is spawned on the wasm_bindgen. |
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.
/// On native this is spawned on the tokio runtime. | |
/// On web this is spawned on the wasm_bindgen. | |
/// On native this task is spawned on the tokio runtime. | |
/// On web this task is spawned via wasm_bindgen. |
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.
Nice!
From our chat in the rust call I think we agree that it's worth adding eg a "runtime" feature flag which on native enables the relevant tokio thing and on web enables the web thing, but we could leave this for a separate PR and I don't think it's super urgent!
I guess raising an issue to look at the subscriptions halting is the other thing to do, but again not related to this PR :)
Close #1753