rust-osdev/uart_16550

Add try_receive method

bjorn3 opened this issue · 1 comments

.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.

I have opened #34. :)