all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Wait for function to execute?
@ 2017-06-08 21:34 Nikolay Kudryavtsev
  2017-06-09  1:40 ` Emanuel Berg
  0 siblings, 1 reply; 2+ messages in thread
From: Nikolay Kudryavtsev @ 2017-06-08 21:34 UTC (permalink / raw)
  To: help-gnu-emacs@gnu.org

Hello.

I have a case where I'm writing a unit test(A) that needs to wait for a 
function(B) that's called by a process sentinel for a process started by 
this unit test. So, when A runs, B runs too, eventually... Since it's a 
unit test, changing B is off limits.

So far I'm thinking of advising B using advice-once described by Drew 
here <https://emacs.stackexchange.com/a/26260/9143>. As my advice 
function I would use a closure that wraps over some condition. Then I 
would have a while loop that sleeps until that condition is fulfilled. 
All this wrapped into one beautiful(ha!) macro. Are there any more, ugh, 
reasonable options?

-- 
Best Regards,
Nikolay Kudryavtsev



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-06-09  1:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-06-08 21:34 Wait for function to execute? Nikolay Kudryavtsev
2017-06-09  1:40 ` Emanuel Berg

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.