1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 04:22:20 +02:00

Default ctor fixes

This commit is contained in:
Brian Fiete 2020-01-26 06:45:36 -08:00
parent 64cb1ab193
commit 7c67b226be
2 changed files with 10 additions and 0 deletions

View file

@ -27,6 +27,11 @@ namespace System.Threading.Tasks
get { return IsWaitNotificationEnabledOrNotRanToCompletion ? GetResultCore(true) : m_result; }
}
protected this()
{
}
public this(Func<Object, TResult> func, Object state, CancellationToken cancellationToken, TaskCreationOptions creationOptions)
: this(func, state, Task.InternalCurrentIfAttached(creationOptions), cancellationToken,
creationOptions, InternalTaskOptions.None, null)

View file

@ -238,6 +238,11 @@ namespace System.Threading.Tasks
}
}
protected this()
{
}
public this(Action action)
: this(action, null, null, default(CancellationToken), TaskCreationOptions.None, InternalTaskOptions.None, null)
{