Decorator-like function on objects that let choose methods to retry on IO
error.
This function would not live here of course by rather in core if useful.
Not tested yet, had some troubles finding how to decorate methods of objects by decorating only the object.
First, need feedback on the approach.