Skip to content

重构 Task - #7344

Draft
Glavo wants to merge 59 commits into
HMCL-dev:mainfrom
Glavo:task
Draft

Glavo wants to merge 59 commits into
HMCL-dev:mainfrom
Glavo:task

Conversation

@Glavo

@Glavo Glavo commented Nov 22, 2026

Copy link
Copy Markdown
Member

No description provided.

@github-actions github-actions Bot added the 5000+ label Nov 22, 2026
Glavo added 15 commits November 22, 2026 22:23
Assisted-by: codex:gpt-6.2-astra
Assisted-by: codex:gpt-6.2-astra
Assisted-by: codex:gpt-6.2-astra
Assisted-by: codex:gpt-6.2-astra

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤖 Static analysis found the following issues (max count 10):

/// Creates a task that waits for `future` and returns its result. Cancelling the task handle
/// does not cancel the future or interrupt a running wait. Future cancellation propagates
/// as a [CancellationException].
public static <T extends @Nullable Object> Task<T> fromCompletableFuture(CompletableFuture<T> future) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[ERROR] [com.puppycrawl.tools.checkstyle.checks.whitespace.SingleSpaceSeparatorCheck]

Use a single space to separate non-whitespace characters.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤖 Static analysis found the following issues (max count 10):

/// Creates a task that waits for `future` and returns its result. Cancelling the task handle
/// does not cancel the future or interrupt a running wait. Future cancellation propagates
/// as a [CancellationException].
public static <T extends @Nullable Object> Task<T> fromCompletableFuture(CompletableFuture<T> future) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[ERROR] [com.puppycrawl.tools.checkstyle.checks.whitespace.SingleSpaceSeparatorCheck]

Use a single space to separate non-whitespace characters.

// SPDX-License-Identifier: GPL-3.0-or-later WITH AdditionRef-HMCL
package org.jackhuang.hmcl.task;

import org.jackhuang.hmcl.util.Lang;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[ERROR] [com.puppycrawl.tools.checkstyle.checks.imports.UnusedImportsCheck]

Unused import - org.jackhuang.hmcl.util.Lang.

import java.lang.invoke.MethodHandles;
import java.lang.invoke.VarHandle;
import java.util.Arrays;
import java.util.function.Consumer;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[ERROR] [com.puppycrawl.tools.checkstyle.checks.imports.UnusedImportsCheck]

Unused import - java.util.function.Consumer.

Glavo added 29 commits November 23, 2026 09:53
Assisted-by: codex:gpt-6.2-astra
…n task factories

Assisted-by: codex:gpt-6.2-astra
Assisted-by: codex:gpt-6.2-astra
Assisted-by: codex:gpt-6.2-astra
Assisted-by: codex:gpt-6.2-astra

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant