Software developer, programmer, Linux user, hobby gardener, dog owner, runner, hiker
#elixir #erlang #rust
Dieses Profil is von einem föderierten Server und möglicherweise unvollständig. Auf der Original-Instanz anzeigen
fasterthanlime , vor 7 Tagen an Random Englisch Found another snag re: dynamic linking Rust code — N copies of tokio are present, so that's N distinct thread-locals storing the "current tokio context" ...and the binary is calling the library from an executor, but the library doesn't think so. https://github.com/tokio-rs/tokio/blob/65d0e08d39f06eba88661d3d6de665b14588f30d/tokio/src/runtime/context.rs#L77-L122
Found another snag re: dynamic linking Rust code — N copies of tokio are present, so that's N distinct thread-locals storing the "current tokio context"
tokio
...and the binary is calling the library from an executor, but the library doesn't think so.
https://github.com/tokio-rs/tokio/blob/65d0e08d39f06eba88661d3d6de665b14588f30d/tokio/src/runtime/context.rs#L77-L122
cjk , vor 7 Tagen Englisch @fasterthanlime I once wrote a task runner library with different queues and priorities and all the bells and whistles. I spawned a tokio runtime for every queue, with a configurable amount of workers. Oh boy, did I regret that. 🫣
@fasterthanlime I once wrote a task runner library with different queues and priorities and all the bells and whistles.
I spawned a tokio runtime for every queue, with a configurable amount of workers.
Oh boy, did I regret that. 🫣