Fixes #37
TaskScheduler.FromCurrentSynchronizationContext throws an exception when SynchronizationContext.Current == null. Also, I don't see why a TaskScheduler would have to be obtained from a SynchronizationContext, so I simply made it use TaskScheduler.Current instead.
Fixes #37
TaskScheduler.FromCurrentSynchronizationContext
throws an exception whenSynchronizationContext.Current == null
. Also, I don't see why aTaskScheduler
would have to be obtained from aSynchronizationContext
, so I simply made it useTaskScheduler.Current
instead.