05nelsonm / kmp-tor

Kotlin Multiplatform Library for embedding Tor into your applications
Apache License 2.0
33 stars 5 forks source link

Use `ArrayDeque` #496

Closed 05nelsonm closed 2 months ago

05nelsonm commented 2 months ago

For RealTorCtrl and RealTorRuntime it would be much better to utilize ArrayDeque instead of an ArrayList. Also will be able to efficiently remove from start when processing RealTorRuntime stack so that callers get success/error callbacks in the order they were enqueued.