Skip to content

Commit

Permalink
Long process interface
Browse files Browse the repository at this point in the history
  • Loading branch information
VoidXH committed Oct 23, 2023
1 parent 5c93057 commit b5fe6b5
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Cavern/Utilities/Interfaces/ILongProcess.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
namespace Cavern.Utilities {
/// <summary>
/// An operation that takes a long time and should run in the background. Its interface provides progress polling.
/// </summary>
public interface ILongProcess {
/// <summary>
/// The ratio of doneness [0;1].
/// </summary>
float Progress { get; }
}
}

0 comments on commit b5fe6b5

Please sign in to comment.