You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Define commands as asynchronous and use Task for preview cancellation (#1049)
* Define commands/actions as asynchronous
* Use `Task` for preview action cancellation
* Move mutable logHandle variables in preview tests inside Tasks
* Fix flaky test that sometimes hung due to blocking the async tasks
* Fix memory leak where DiagnosticEngine retains itself
* Fix PreviewServer retain cycle
* Fix another flaky test that blocked the async tasks
* Fix leak of NIO thread pools and event loops during tests
This source file is part of the Swift.org open source project
3
3
4
-
Copyright (c) 2021 Apple Inc. and the Swift project authors
4
+
Copyright (c) 2021-2024 Apple Inc. and the Swift project authors
5
5
Licensed under Apache License v2.0 with Runtime Library Exception
6
6
7
7
See https://swift.org/LICENSE.txt for license information
@@ -13,18 +13,16 @@ import SwiftDocC
13
13
14
14
/// An independent unit of work in the command-line workflow.
15
15
///
16
-
/// An `Action` represents a discrete documentation task; it takes options and inputs,
17
-
/// performs its work, reports any problems it encounters, and outputs it generates.
18
-
publicprotocolAction{
16
+
/// An action represents a discrete documentation task; it takes options and inputs, performs its work, reports any problems it encounters, and outputs it generates.
17
+
packageprotocolAsyncAction{
19
18
/// Performs the action and returns an ``ActionResult``.
0 commit comments