class Rosegold::HandSwap

Defined in:

rosegold/inventory/hand_swap.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(client : Client) #

[View source]

Instance Method Detail

def run(timeout : Time::Span, session : Client::PlaySession | Nil, authorized : -> Bool, &) : Nil #

The block sends the swap in session and returns whether it was written. authorized gates the container close and the swap; once it lapses or the session ends, nothing more is sent.


[View source]