-
Notifications
You must be signed in to change notification settings - Fork 419
Futures: passing args on construction, interoperability with channel, documentation #314
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
1c65e49
to
ac25865
Compare
end | ||
|
||
# Schedules the block to be executed on executor in given intended_time. | ||
# @return [Future] | ||
def schedule(intended_time, default_executor = :io, &task) | ||
ScheduledPromise.new(intended_time, default_executor).future.chain(&task) | ||
def schedule(intended_time, *args, &task) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we list what types can be used with IntendedTime? This may have some implications if used with something like ActiveSupport, for example.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, good point.
@pitr-ch Is this ready for merge? I would like to release pre2 this evening. |
merging, and updating changelog branch. There is some work left, but that can wait after pre2. |
Futures: passing args on construction, interoperability with channel, documentation
No description provided.