Dusic::Misc
Instance methods
await(timeout : Time::Span = 10.seconds, interval : Time::Span = 250.milliseconds, &) : Bool
Loops and calls provided block. Stops when timeout is hit (result will be false) or block
returns truthy value (result will be true)
format_seconds(seconds : Int32) : String
Sourcespawn(name : String | Nil = nil, same_thread : Bool = false, &block) : Fiber
Wrapper around default spawn method
TODO: Currently it seems to have no use. Consider deleting
t(key : String, options : Hash | NamedTuple | Nil = nil, force_locale = nil, count = nil, default = nil, iter = nil, &block : -> String) : String
Wrapper over I18n.translate
t(*args, **opts) : String
Source