diff --git a/BeefLibs/corlib/src/Threading/Tasks/Future.bf b/BeefLibs/corlib/src/Threading/Tasks/Future.bf index 1d6484d8..b5346ec7 100644 --- a/BeefLibs/corlib/src/Threading/Tasks/Future.bf +++ b/BeefLibs/corlib/src/Threading/Tasks/Future.bf @@ -27,6 +27,11 @@ namespace System.Threading.Tasks get { return IsWaitNotificationEnabledOrNotRanToCompletion ? GetResultCore(true) : m_result; } } + protected this() + { + + } + public this(Func func, Object state, CancellationToken cancellationToken, TaskCreationOptions creationOptions) : this(func, state, Task.InternalCurrentIfAttached(creationOptions), cancellationToken, creationOptions, InternalTaskOptions.None, null) diff --git a/BeefLibs/corlib/src/Threading/Tasks/Task.bf b/BeefLibs/corlib/src/Threading/Tasks/Task.bf index 8948c69a..4bb20ed6 100644 --- a/BeefLibs/corlib/src/Threading/Tasks/Task.bf +++ b/BeefLibs/corlib/src/Threading/Tasks/Task.bf @@ -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) {