UniRx 에셋 추가
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
|
||||
namespace UniRx
|
||||
{
|
||||
public sealed class BooleanDisposable : IDisposable, ICancelable
|
||||
{
|
||||
public bool IsDisposed { get; private set; }
|
||||
|
||||
public BooleanDisposable()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
internal BooleanDisposable(bool isDisposed)
|
||||
{
|
||||
IsDisposed = isDisposed;
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
if (!IsDisposed) IsDisposed = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user