|ISuppressSwallow Method (Task)|
Logs an exception is logged at Error level if the provided task does not run to completion.
NLog (in NLog.dll) Version: 4.3.0
Sub Swallow (
task As Task
- Type: System.Threading.TasksTask
The task for which to log an error if it does not run to completion.
This method is useful in fire-and-forget situations, where application logic does not depend on completion of task. This method is avoids C# warning CS4014 in such situations.