Thomasdezeeuw/io-context

Reuse boxed values in `add_value`

Thomasdezeeuw opened this issue · 0 comments

Todo in the code:

// TODO: what if `V` is already boxed, can be reuse to box somehow?

Easier way to do it (I think) is to create a new method:

pub fn add_boxed_value<V>(&mut self, key: &'static str, value: Box<V>)