-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Closed
Labels
area-System.Text.Jsonbacklog-cleanup-candidateAn inactive issue that has been marked for automated closure.An inactive issue that has been marked for automated closure.
Milestone
Description
Issue Title
serilize Task object will let cpu 100%
General
IDE: VS2019 Community
Version: .net core 3.1
System: both Win10 and Centos 7.5
Framework: ASP.Net Core
public IActionResult test () {
var content = Task.Run (...);// Task object
return new OkObjectResult (new { result = true, reason = "", content });
}if I use Newtonsoft.Json to serilize the object, it will throw a exception, but if I use the code, It will always lock with there and let CPU 100%
Metadata
Metadata
Assignees
Labels
area-System.Text.Jsonbacklog-cleanup-candidateAn inactive issue that has been marked for automated closure.An inactive issue that has been marked for automated closure.