shiplift icon indicating copy to clipboard operation
shiplift copied to clipboard

Return "Iterator<Result<Event>>" instead of "Result<Iterator<Event>>" for Docker::events()

Open flaviut opened this issue 7 years ago • 1 comments

If there's an error in initialization, it can be returned as the first (& only) element of the iterator. The current behaviour doesn't propagate any errors that occur while iterating the stream, it panics instead.

flaviut avatar Jun 07 '18 03:06 flaviut

there are some updates on the way to return async streams - https://github.com/softprops/shiplift/pull/128/files#diff-b4aea3e418ccdb71239b96952d9cddb6R730

softprops avatar Oct 17 '18 16:10 softprops