1
0
mirror of https://github.com/fafhrd91/actix-net synced 2025-08-31 22:06:59 +02:00

Re-register task on every future poll

This commit is contained in:
Nikolay Kim
2019-10-14 17:55:52 +06:00
parent 115e82329f
commit 2e8c2c7733
7 changed files with 21 additions and 4 deletions

View File

@@ -29,6 +29,10 @@ impl<T> Cell<T> {
}
}
pub(crate) unsafe fn get_ref(&mut self) -> &T {
&*self.inner.as_ref().get()
}
pub(crate) unsafe fn get_mut(&mut self) -> &mut T {
&mut *self.inner.as_ref().get()
}