Skip to content

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

Merged
merged 16 commits into from
Jun 7, 2015

Conversation

pitr-ch
Copy link
Member

@pitr-ch pitr-ch commented May 31, 2015

No description provided.

@pitr-ch pitr-ch added the enhancement Adding features, adding tests, improving documentation. label May 31, 2015
@pitr-ch pitr-ch added this to the 0.9.0 Release milestone May 31, 2015
@pitr-ch pitr-ch force-pushed the futures branch 2 times, most recently from 1c65e49 to ac25865 Compare May 31, 2015 22:30
@pitr-ch pitr-ch changed the title Futures: passing args on construction, interoperability with channel Futures: passing args on construction, interoperability with channel, documentation May 31, 2015
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)
Copy link
Contributor

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.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, good point.

@jdantonio
Copy link
Member

@pitr-ch Is this ready for merge? I would like to release pre2 this evening.

@pitr-ch
Copy link
Member Author

pitr-ch commented Jun 7, 2015

merging, and updating changelog branch. There is some work left, but that can wait after pre2.

pitr-ch pushed a commit that referenced this pull request Jun 7, 2015
Futures: passing args on construction, interoperability with channel, documentation
@pitr-ch pitr-ch merged commit 1917c2d into ruby-concurrency:master Jun 7, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Adding features, adding tests, improving documentation.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants