Creates a 'promise' from a 'mirai'.
# S3 method for class 'mirai'
as.promise(x)
A 'promise' object.
This function is an S3 method for the generic as.promise()
for class
'mirai'.
Requires the promises package.
Allows a 'mirai' to be used with the promise pipe %...>%
, which schedules a
function to run upon resolution of the 'mirai'.