in reply to Weird Output with Threads and NCurses
The advice I've seen from Freenode's #perl is "Don't use threads, use an Async library instead".
From perlbot: async "Asynchronous event-driven IO is awesome in Perl with POE, Future/IO::Async, IO::Lambda, Mojo::IOLoop, Reflex, or Promises, among others."
Perhaps some monks more familiar with the above modules can implement your example in them.
I've done your problem with my own Async::Tiny and it's approximately the same length
and works without any weird problems. I can show you if you're interested.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Weird Output with Threads and NCurses
by Corion (Patriarch) on Jul 18, 2016 at 15:04 UTC | |
|
Re^2: Weird Output with Threads and NCurses
by Anonymous Monk on Jul 18, 2016 at 15:19 UTC | |
by BrowserUk (Patriarch) on Jul 18, 2016 at 16:06 UTC | |
by choroba (Cardinal) on Jul 18, 2016 at 16:07 UTC | |
by var121 (Novice) on Jul 19, 2016 at 14:24 UTC | |
by Anonymous Monk on Jul 19, 2016 at 15:55 UTC | |
by Anonymous Monk on Jul 19, 2016 at 18:12 UTC | |
by Anonymous Monk on Jul 20, 2016 at 04:59 UTC |