Make all methods on BuildSystem async

This is the prerequisite for making the build systems actors.
This commit is contained in:
Alex Hoppen
2023-09-28 07:11:34 -07:00
parent 5e37b329a1
commit e663bbcf8a
14 changed files with 208 additions and 93 deletions

View File

@@ -65,6 +65,11 @@ public final class BuildServerBuildSystem: MessageHandler {
/// Delegate to handle any build system events.
public weak var delegate: BuildSystemDelegate?
/// - Note: Needed to set the delegate from a different actor isolation context
public func setDelegate(_ delegate: BuildSystemDelegate?) async {
self.delegate = delegate
}
/// The build settings that have been received from the build server.
private var buildSettings: [DocumentURI: FileBuildSettings] = [:]