src/Foundation/Infrastructure/Gimela.Infrastructure.AsyncModel/AsyncWaiter/AsyncWaiter.cs
/// <summary>
/// Pops the specified asynchronous token.
/// </summary>
/// <param name="token">The asynchronous token.</param>
/// <returns>The user defined state data.</returns>
Pops the specified asynchronous token.
Pops the specified asynchronous token .
public TState Pop(AsyncToken<TToken> token)
    {
      lock (syncRoot)
      {
        if (!waiter.ContainsKey(token))
          throw new AsyncTokenNotFoundException<TToken>(token);
        TState state = waiter[token];
        waiter.Remove(token);
        return state;
      }
    }
public TState Pop ( AsyncToken < TToken > token ) { lock ( syncRoot ) { if ( ! waiter . ContainsKey ( token ) ) throw new AsyncTokenNotFoundException < TToken > ( token ) ; TState state = waiter [ token ] ; waiter . Remove ( token ) ; return state ; } }
Pops the specified asynchronous token.
Pops the specified asynchronous token .
The user defined state data.
The user defined state data .
token
AsyncToken<TToken>
The asynchronous token.
The asynchronous token .