Skip to content

Instantly share code, notes, and snippets.

@anaisbetts
Created January 18, 2011 07:07
Show Gist options
  • Select an option

  • Save anaisbetts/784075 to your computer and use it in GitHub Desktop.

Select an option

Save anaisbetts/784075 to your computer and use it in GitHub Desktop.
IObservable<byte[]> mockReadBytesAsync()
{
// Wait ten seconds, then return the byte array
return Observable.Return(new byte[] {1,2,3}).Delay(TimeSpan.FromSeconds(10), RxApp.TaskpoolScheduler);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment