Make poll_at private again

Unsure that we'll want to continue to expose this, stick to being conservative
for now.
This commit is contained in:
Alex Crichton
2017-10-05 10:46:51 -07:00
parent 25760609fa
commit 259c7a0884
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -68,7 +68,7 @@ impl Interval {
/// otherwise functions as this future's `poll` function. This will block a
/// task if one isn't already blocked or update a previous one if already
/// blocked.
pub fn poll_at(&mut self, now: Instant) -> Poll<Option<()>, io::Error> {
fn poll_at(&mut self, now: Instant) -> Poll<Option<()>, io::Error> {
if self.next <= now {
self.next = next_interval(self.next, now, self.interval);
self.token.reset_timeout(self.next, &self.handle);
+1 -1
View File
@@ -77,7 +77,7 @@ impl Timeout {
/// otherwise functions as this future's `poll` function. This will block a
/// task if one isn't already blocked or update a previous one if already
/// blocked.
pub fn poll_at(&mut self, now: Instant) -> Poll<(), io::Error> {
fn poll_at(&mut self, now: Instant) -> Poll<(), io::Error> {
if self.when <= now {
Ok(Async::Ready(()))
} else {