2
3
Fork
You've already forked databook
1

Stop creating a new tokio runtime to invoke http requests #21

Closed
opened 2022年10月12日 21:30:20 +02:00 by era · 2 comments
Owner
Copy link

Today we create a new runtime everytime we are going to block on the http request, we should stop doing it: https://codeberg.org/era/databook/src/branch/main/databook-rs/src/wasm.rs#L144

The easiest way is to use reqwest which has a blocking version.

Today we create a new runtime everytime we are going to block on the http request, we should stop doing it: https://codeberg.org/era/databook/src/branch/main/databook-rs/src/wasm.rs#L144 The easiest way is to use reqwest which has a blocking version.
Author
Owner
Copy link
https://docs.rs/reqwest/latest/reqwest/blocking/
Author
Owner
Copy link
https://codeberg.org/era/databook/commit/bff58355c5f240522e42fb327667b46a37215353
Sign in to join this conversation.
No Branch/Tag specified
main
era/upgradewit
feature/front-back-communication
feature/initial-layout-structure-web
elias/wit_bindgen3
feature/adding-sveltekit-web
No results found.
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
era/databook#21
Reference in a new issue
era/databook
No description provided.
Delete branch "%!s()"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?