         // perform actual registration
         let ret: T? = self.register(function, with: argsConfig)
 
-        // and flush the arguments storage
-        ArgumentStorageImpl.instance.flush()
 
         return ret
     }


    @discardableResult
    public func expect() -> Expectation {
        let stub = Stub()
        let expectation = self.expectationFactory.expectation(withStub: stub)


    @discardableResult
    public func stub() -> Stub {
        let stub = Stub()

        // flush all the argument configurations from the storage
        ArgumentStorageImpl.instance.flush()

        // mark instance as being ready for registration
        self.stubBeingRegistered = stub
