cunarist / rinf

Rust for native business logic, Flutter for flexible and beautiful GUI
MIT License
1.99k stars 72 forks source link

Add timeout parameter to requestToRust function. #205

Closed cipherchabon closed 1 year ago

cipherchabon commented 1 year ago

Changes

This PR introduces the ability to specify a custom timeout for the requestToRust function within the rinf. The default timeout has been preserved, but users can now optionally set a different duration if needed.

Key changes:

This enhancement allows for more flexible network timeout management in environments where the fixed timeout may be insufficient or overly conservative.

Please review the changes and let me know if there are any further adjustments I should make.

temeddix commented 1 year ago

Thanks for the PR! This looks like a good idea. I'll review it as soon as possible and release a new version :)

temeddix commented 1 year ago

It looks good :) I will just add the related info to the docs and merge it.