Monday, February 11, 2019

Re: Perl and job support

David Fishburn wrote:

> Vim 8.1.699
>
> One of my plugins uses Vims dynamic perl modules to load my scripts and run
> them inside of Vim.
>
> This has many advantages for flexibility and speed.
>
> One of the disadvantage of this is it is synchronous. Just wondering if it
> is possible to tie this into Vims job support and make it asynchronous?
>
> Just looking for ideas, or if you think it is possible or not.

What do you mean with "load my scripts"? Is that Perl scripts or Vim
scripts? For Perl scripts you would probably use some Perl mechanism.

What part of it would be asynchronous? Besides Jobs, you can use Timers
to have something executed from the main thread. With a zero timeout
that's ASAP.

--
A disclaimer for the disclaimer:
"and before I get a huge amount of complaints , I have no control over the
disclaimer at the end of this mail :-)" (Timothy Aldrich)

/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments: