Skip to content
Discussion options

You must be logged in to vote

Hi @shimoranla,

Thanks for reaching out! Based on your description, here are a few suggestions that might help resolve the issue:

  1. Avoid Task.Run(...) for Async Entry Points
    Using Task.Run(...) in your Main method can suppress exceptions and cause the program to exit prematurely. Instead, await the async method directly. Here's how you can structure your code properly:
using SuikaiLauncher.Core;
using SuikaiLauncher.Core.Base;

public class Client
{
    public static async Task Main()
    {
        try
        {
            await Download.Start(new List<FileMetaData>
            {
                new FileMetaData
                {
                    url = "https://releases.ubuntu.com/24…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@copytiao
Comment options

Answer selected by copytiao
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested
2 participants