mirror of
https://github.com/sampletext32/ParkanPlayground.git
synced 2026-08-15 02:57:49 +04:00
add config file
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
namespace NResUI;
|
||||
|
||||
public interface ILater
|
||||
{
|
||||
void Execute(Action action);
|
||||
}
|
||||
|
||||
public class Later : ILater
|
||||
{
|
||||
private Queue<Action> _queue = new();
|
||||
|
||||
public void Execute(Action action)
|
||||
{
|
||||
_queue.Enqueue(action);
|
||||
}
|
||||
|
||||
public IEnumerable<Action> Enumerate()
|
||||
{
|
||||
while (_queue.Count > 0)
|
||||
{
|
||||
var action = _queue.Dequeue();
|
||||
yield return action;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user