rust-osdev / uart_16550

Minimal support for uart_16550 serial output.
MIT License
30 stars 23 forks source link

Add try_receive method #32

Open bjorn3 opened 2 months ago

bjorn3 commented 2 months ago

.receive() polls for new input internally. A .try_receive() method would allow the OS to handle the polling itself and do other useful work between two polls rather than hang until the next input byte or (if supported by the OS) the current kernel thread gets preempted.