Check out example codes for "asp.net core timeout". It will help you in understanding the concepts better.

Code Example 1

public static IWebHost BuildWebHost(string[] args) =>
    WebHost.CreateDefaultBuilder(args)
        .UseStartup<Startup>()
        .UseKestrel(o => { o.Limits.KeepAliveTimeout = TimeSpan.FromMinutes(10); })
        .Build();
}

Learn ReactJs, React Native from akashmittal.com