code: def tap(f):
      
      @wraps(f)
      def _cb(res, *a, **kw):
          d = maybeDeferred(f, res, *a, **kw)
          d.addCallback(lambda ignored: res)
          return d
      return _cb
docs: "Tap" a Deferred callback chain with a function whose return value is
      ignored.