mirror of
https://github.com/MikuLeaks/KianaBH3.git
synced 2025-12-13 21:34:43 +01:00
Init enter game
This commit is contained in:
16
KcpSharp/Base/IKcpExceptionProducer.cs
Normal file
16
KcpSharp/Base/IKcpExceptionProducer.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
namespace KianaBH.KcpSharp.Base;
|
||||
|
||||
/// <summary>
|
||||
/// An instance that can produce exceptions in background jobs.
|
||||
/// </summary>
|
||||
/// <typeparam name="T">The type of the instance.</typeparam>
|
||||
public interface IKcpExceptionProducer<out T>
|
||||
{
|
||||
/// <summary>
|
||||
/// Set the handler to invoke when exception is thrown. Return true in the handler to ignore the error and continue
|
||||
/// running. Return false in the handler to abort the operation.
|
||||
/// </summary>
|
||||
/// <param name="handler">The exception handler.</param>
|
||||
/// <param name="state">The state object to pass into the exception handler.</param>
|
||||
void SetExceptionHandler(Func<Exception, T, object?, bool> handler, object? state);
|
||||
}
|
||||
Reference in New Issue
Block a user