chzyer / readline

Readline is a pure go(golang) implementation for GNU-Readline kind library
MIT License
2.1k stars 280 forks source link

Reading from differents threads sharing the same Instance #230

Open Slixe opened 1 year ago

Slixe commented 1 year ago

Hey there,

I'm curious, would it be possible to share the instance between two differents threads ? What I want to achieve is the following:

The go routine would have priority on read and the main thread would be on hold for it. How to achieve that ? Thanks in advance.