This is a rather old item i see, but the patch would be welcome so we can evaluate it. Simple changes making more possible are always welcome.

As a second thing, if we add this to the lib, would you be willing to provide a short doc detailing your usage case and some example code? I think many could profit from that.