Welcome the channel on the development of Cro, a set of libraries for building reactive distributed systems, lovingly crafted to take advantage of all the Raku Programming Language has to offer (cro.services). This channel is being logged for historical purposes.
Set by lizmat on 24 May 2021.
Xliff \o 18:49
Hi. I have static classes that I use to implement Applications at the Cro::Route layer. Is there a mechanism to attach request/response specific data to the request object so that my static Application classes can remain thread (and request) safe. 18:50
The use case here is Database Pools. 18:51
Thanks.
jnthn Xliff: Use the `annotations` hash on the Cro::HTTP::Request object: `$request.annotations<conn> = $conn` 21:44
(It's how Log::Timeline attaches a task to a request so it can log its processing details) 21:45
(But was made a generic mechanism for use-cases like yours.)