Post B1ymIMZFnP9QFPGRgu by elb@social.sdf.org
 (DIR) More posts by elb@social.sdf.org
 (DIR) Post #B1ymIMZFnP9QFPGRgu by elb@social.sdf.org
       2026-01-05T15:35:50Z
       
       0 likes, 0 repeats
       
       OK #Emacs people, time to #AskFedi about an #elisp API thing:I'm running async external processes, and I want to trigger callbacks when they finish (successful or otherwise).  I'm currently using process sentinels, but ... this interface is terrible!  The process result is a string that _isn't even well-defined?_  Surely there has to be a better way!What is that better way?  (I see that eshell uses those same strings, so I'm not hopeful...)
       
 (DIR) Post #B1ymINQmaNy8vQJC7s by hajovonta@mastodon.online
       2026-01-05T15:41:48Z
       
       0 likes, 0 repeats
       
       @elb Emacs is single-threaded. You need a multi-threaded backend to run processes fully asynchronously.
       
 (DIR) Post #B1ymIOHxOgVHaLBf0a by tusharhero@mathstodon.xyz
       2026-01-05T15:48:56Z
       
       0 likes, 0 repeats
       
       @hajovonta @elb Not really true. You can async *external* processes.
       
 (DIR) Post #B1ymJlR6ovKVfL7fZg by elb@social.sdf.org
       2026-01-05T15:43:12Z
       
       0 likes, 0 repeats
       
       @hajovonta this is neither true nor helpful.  Assume that I actually know A LOT about processes, operating systems, programming, and even lisp development.
       
 (DIR) Post #B1ymJmE1t2Sg740jpI by tusharhero@mathstodon.xyz
       2026-01-05T15:49:12Z
       
       0 likes, 0 repeats
       
       @elb @hajovonta I don't think this is a very productive way to talk to people.
       
 (DIR) Post #B1ymQE9Ez2IuS2qYtc by tusharhero@mathstodon.xyz
       2026-01-05T15:50:23Z
       
       0 likes, 0 repeats
       
       @elb I am not sure what you mean by process results not being well defined.
       
 (DIR) Post #B1ymUzGXk6Qfk7X3jc by elb@social.sdf.org
       2026-01-05T15:51:10Z
       
       0 likes, 0 repeats
       
       @tusharhero @hajovonta When a reply looks like a reply-guy reply, that's what happens.
       
 (DIR) Post #B1ymXUw2y2j6Xj8tRg by tusharhero@mathstodon.xyz
       2026-01-05T15:51:42Z
       
       0 likes, 0 repeats
       
       @elb @hajovonta I guess I am a "reply guy" too.