Hey all, I'm trying to wrap my head around how I would go about implementing a small library for managing contextual data (thread locals, coroutine context elements) in applications that run on thread, coroutines or a mixture of both. Is anyone aware of existing libraries that help with this thing or good implementations in existing larger open source frameworks that I could look at?
Basically, I want to abstract the context of contextual data, and have the ability to make application code fairly agnostic to whether it's executing on a thread or coroutine, accessing or updating contextual data happens through the same API.