Skip to content

[may be a bug] serilize Task object will let cpu 100% #38111

@fawdlstty

Description

@fawdlstty

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

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions