chzyer / readline

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

Reading from differents threads sharing the same Instance #230

Open Slixe opened 11 months ago

Slixe commented 11 months 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.