1
0
Fork 0

Explicitly guarantee no simultaneous editors exist

This commit is contained in:
Robbert van der Helm 2022-02-08 20:16:04 +01:00
parent 57297cc04c
commit 08fe8e703e

View file

@ -139,6 +139,9 @@ pub trait Editor: Send + Sync {
/// This function should return a handle to the editor, which will be dropped when the editor
/// gets closed. Implement the [Drop] trait on the returned handle if you need to explicitly
/// handle the editor's closing behavior.
///
/// The wrapper guarantees that a previous handle has been dropped before this function is
/// called again.
//
// TODO: Think of how this would work with the event loop. On Linux the wrapper must provide a
// timer using VST3's `IRunLoop` interface, but on Window and macOS the window would