mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
43 lines
922 B
C#
43 lines
922 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using System.Threading.Tasks.Sources;
|
|
|
|
namespace Wabbajack.Common.CSP
|
|
{
|
|
public struct Box<T>
|
|
{
|
|
public T Value;
|
|
public bool IsSet;
|
|
|
|
public Box(T value)
|
|
{
|
|
Value = value;
|
|
IsSet = true;
|
|
}
|
|
|
|
|
|
public static Box<T> Empty = new Box<T>();
|
|
}
|
|
|
|
class test : IValueTaskSource
|
|
{
|
|
public ValueTaskSourceStatus GetStatus(short token)
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
public void OnCompleted(Action<object> continuation, object state, short token, ValueTaskSourceOnCompletedFlags flags)
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
public void GetResult(short token)
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
}
|
|
}
|