hyperliquid-dex / hyperliquid-rust-sdk

MIT License
68 stars 49 forks source link

Fix #47: Handle dropping the WsManager without creating a new Runtime and blocking on tasks #61

Closed Frixoe closed 1 month ago

Frixoe commented 1 month ago

The previous implementation in the PR #51 was logging an output alerting that creating a new runtime within an existing runtime is not recommended.

This PR fixes that by allowing the thread to exit without blocking on them.

The implementation has been tested.

Frixoe commented 1 month ago

@lmlmt Do let me know if this is satisfactory. #51 did the same but with the extra warning.