use core::task::{Context, Poll};

use yggdrasil_abi::error::Error;

pub use libk_util::io::{Read, Seek, Write};

/// Interface for polling files for events
pub trait FileReadiness: Sync {
    /// Polls file's "read-ready" status
    fn poll_read(&self, cx: &mut Context<'_>) -> Poll<Result<(), Error>>;
}
