From b5fe6b5e4ac306677368a9988aa5d3afcee91a67 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bence=20Sg=C3=A1netz?= Date: Mon, 23 Oct 2023 15:18:44 +0200 Subject: [PATCH] Long process interface --- Cavern/Utilities/Interfaces/ILongProcess.cs | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 Cavern/Utilities/Interfaces/ILongProcess.cs diff --git a/Cavern/Utilities/Interfaces/ILongProcess.cs b/Cavern/Utilities/Interfaces/ILongProcess.cs new file mode 100644 index 00000000..40db743b --- /dev/null +++ b/Cavern/Utilities/Interfaces/ILongProcess.cs @@ -0,0 +1,11 @@ +namespace Cavern.Utilities { + /// + /// An operation that takes a long time and should run in the background. Its interface provides progress polling. + /// + public interface ILongProcess { + /// + /// The ratio of doneness [0;1]. + /// + float Progress { get; } + } +} \ No newline at end of file