diff --git a/README.md b/README.md index ee3561c..2b8b52e 100644 --- a/README.md +++ b/README.md @@ -4,8 +4,8 @@ * Fast - TODO * Safe - Written fully in safe Rust. * Portable - Works on Linux, macOS, iOS, and Windows. -* Documented - Easy to tweak for custom use cases! * Lightweight - Built from scratch, hooks directly into epoll/kqueue/wepoll. +* Documented - Easy to tweak for custom use cases! * Networking - Provides async TCP, UDP, and Unix domain sockets. * Executor - Configurable and with built-in work stealing. * Blocking - TODO diff --git a/src/reactor.rs b/src/reactor.rs index b192fd1..83bc15e 100644 --- a/src/reactor.rs +++ b/src/reactor.rs @@ -103,7 +103,7 @@ impl Async { } /// Turns a non-blocking read into an async operation. - async fn read_with<'a, R>( + pub async fn read_with<'a, R>( &'a self, mut f: impl FnMut(&'a T) -> io::Result, ) -> io::Result { @@ -111,7 +111,7 @@ impl Async { } /// Turns a non-blocking write into an async operation. - async fn write_with<'a, R>( + pub async fn write_with<'a, R>( &'a self, mut f: impl FnMut(&'a T) -> io::Result, ) -> io::Result {