Skip to content

Commit

Permalink
use getter property expressions in fiber Wait
Browse files Browse the repository at this point in the history
  • Loading branch information
willportnoy committed Dec 9, 2016
1 parent 74e4b5d commit 9cccff9
Showing 1 changed file with 6 additions and 42 deletions.
48 changes: 6 additions & 42 deletions CSharp/Library/Fibers/Wait.cs
Original file line number Diff line number Diff line change
Expand Up @@ -75,21 +75,9 @@ private NullWait()
{
}

Need IWait.Need
{
get
{
return Need.None;
}
}
Need IWait.Need => Need.None;

Type IWait.NeedType
{
get
{
return typeof(object);
}
}
Type IWait.NeedType => typeof(object);

Delegate IWait.Rest
{
Expand All @@ -99,13 +87,7 @@ Delegate IWait.Rest
}
}

Type IWait.ItemType
{
get
{
return typeof(object);
}
}
Type IWait.ItemType => typeof(object);

void IWait.Post<T>(T item)
{
Expand Down Expand Up @@ -202,13 +184,7 @@ bool IEquatable<Wait<C, T>>.Equals(Wait<C, T> other)
;
}

Need IWait.Need
{
get
{
return this.need;
}
}
Need IWait.Need => this.need;

Type IWait.NeedType
{
Expand All @@ -229,21 +205,9 @@ Type IWait.NeedType
}
}

Delegate IWait.Rest
{
get
{
return this.rest;
}
}
Delegate IWait.Rest => this.rest;

Type IWait.ItemType
{
get
{
return typeof(T);
}
}
Type IWait.ItemType => typeof(T);

async Task<IWait<C>> IWait<C>.PollAsync(IFiber<C> fiber, C context, CancellationToken token)
{
Expand Down

0 comments on commit 9cccff9

Please sign in to comment.