mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-21 17:28:00 +02:00
Moving corlib files out of "System" directory into root
This commit is contained in:
parent
4cd58262e4
commit
7dbfd15292
179 changed files with 3 additions and 0 deletions
32
BeefLibs/corlib/src/Threading/CancellationToken.bf
Normal file
32
BeefLibs/corlib/src/Threading/CancellationToken.bf
Normal file
|
@ -0,0 +1,32 @@
|
|||
// This file contains portions of code released by Microsoft under the MIT license as part
|
||||
// of an open-sourcing initiative in 2014 of the C# core libraries.
|
||||
// The original source was submitted to https://github.com/Microsoft/referencesource
|
||||
|
||||
namespace System.Threading
|
||||
{
|
||||
struct CancellationToken
|
||||
{
|
||||
private CancellationTokenSource m_source;
|
||||
|
||||
public static CancellationToken None
|
||||
{
|
||||
get { return default(CancellationToken); }
|
||||
}
|
||||
|
||||
public bool IsCancellationRequested
|
||||
{
|
||||
get
|
||||
{
|
||||
return m_source != null && m_source.IsCancellationRequested;
|
||||
}
|
||||
}
|
||||
|
||||
public bool CanBeCanceled
|
||||
{
|
||||
get
|
||||
{
|
||||
return m_source != null && m_source.CanBeCanceled;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue