« Return to Thread: Asynchronous insertion / saving of buffers

Re: Asynchronous insertion / saving of buffers

by Stefan Monnier :: Rate this Message:

| View in Thread

> Yes, this might help. But you still need a kind of infrastructure as you
> have pointed out above.  Would those new APIs differ, when the
> implementation is based on threads, instead of of what I'm doing now?

With threads you could "just" do something like

 (run-thread (lambda ()
               (insert-file-contents ...)
               ...))

so there'd be no need to provide new asynchronous versions of things
like insert-file-contents.


        Stefan

 « Return to Thread: Asynchronous insertion / saving of buffers