Skip to content

Instantly share code, notes, and snippets.

@marek-safar
Created August 25, 2011 12:40
Show Gist options
  • Save marek-safar/1170559 to your computer and use it in GitHub Desktop.
Save marek-safar/1170559 to your computer and use it in GitHub Desktop.
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Threading.Tasks;
class A : IAsyncResult
{
#region IAsyncResult implementation
public object AsyncState {
get {
throw new NotImplementedException ();
}
}
public System.Threading.WaitHandle AsyncWaitHandle {
get {
throw new NotImplementedException ();
}
}
public bool CompletedSynchronously {
get {
throw new NotImplementedException ();
}
}
public bool IsCompleted {
get {
throw new NotImplementedException ();
}
}
#endregion
}
class C
{
public static void Main ()
{
var f = new TaskFactory<int> ();
f.FromAsync (new A (), null);
return;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment