Ui_effect.ExpertSourceeval t ~f runs the given effect, and calls f when the effect completes. This function should not be called while constructing effects; it's intended for use by libraries that actually schedule effects, such as Bonsai, or Virtual_dom.