PromiseMaidUtils
Helper functions for maids and promises
Functions
whilePromise
PromiseMaidUtils.whilePromise(promise: Promise.Promise<T...>,callback: ((Maid.Maid) → ())?) → Maid.MaidCalls the callback with a maid for the lifetime of the promise.
local promise = Promise.delay(5)
PromiseMaidUtils.whilePromise(promise, function(maid)
-- Do work while the promise is pending
end)