You can await an observable as if it were a task so it's no big deal. In
fact you can await almost anything as long as there is an extension method
GetAwaiter for that type.
On Jun 13, 2013 9:58 AM, "Paul Betts" <notifications@github.com> wrote:

> In ReactiveUI/Bitmaps.cs:
>
> > +    }
> > +
> > +    /// <summary>
> > +    /// Represents the platform-specific image loader class. Unless you are
> > +    /// testing image loading, you don't usually need to implement this.
> > +    /// </summary>
> > +    public interface IBitmapLoader
> > +    {
> > +        /// <summary>
> > +        /// Loads a bitmap from a byte stream
> > +        /// </summary>
> > +        /// <param name="sourceStream">The stream to load the image from.</param>
> > +        /// <param name="desiredWidth">The desired width of the image.</param>
> > +        /// <param name="desiredHeight">The desired height of the image.</param>
> > +        /// <returns>A future result representing the loaded image</returns>
> > +        IObservable<IBitmap> Load(Stream sourceStream, float? desiredWidth, float? desiredHeight);
>
> I went back and forth on this. Originally it was Task, but this is
> ReactiveUI, it's presumed that most people will understand IObservable :)
> As to making every method name end in Async, I think that's terrible and
> DevDiv should feel bad as human beings for perpetuating such nonsense.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/reactiveui/ReactiveUI/pull/321/files#r4674154>
> .
>