From 7c67b226be8b8b24dbc67bb6a6da5ba13f25bf8b Mon Sep 17 00:00:00 2001 From: Brian Fiete Date: Sun, 26 Jan 2020 06:45:36 -0800 Subject: [PATCH] Default ctor fixes --- BeefLibs/corlib/src/Threading/Tasks/Future.bf | 5 +++++ BeefLibs/corlib/src/Threading/Tasks/Task.bf | 5 +++++ 2 files changed, 10 insertions(+) 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) {