Let say I have an API with one static method generateAll that takes a Block as parameter and generate all elements by calling the Block n times. How can I create a Stream on top of this API ? Rémi