Save function invocation results into a buffer for specified amount of time and get back an array of the invocation results at the expiration or beforehand