Skip to content

Commit a8b9e64

Browse files
yim-leektoso
andauthored
Implement ActorSingleton for DistributedActor (#980)
* Implement ActorSingleton for DistributedActor Resolves #824 * Fix compilation errors * Rename and better APIs * Update docs * Formatting; revert unneeded changes * Only singleton needs to have known name * Implement ActorSingleton for DistributedActor Resolves #824 * rework how we get hold of intercepted actors * rework how we get hold of intercepted actors * Rebase and move ClusterSingletonPlugin into DistributedActors module * Move singleton tests * Singleton allocation should be time bound * Remove unnecessary actor * Add test for allocation timeout * Respect buffer capacity * clean up FIXMEs * Make plugin shutdown async Co-authored-by: Konrad `ktoso` Malawski <[email protected]>
1 parent 4507550 commit a8b9e64

24 files changed

+1408
-1079
lines changed

Package.swift

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -34,16 +34,6 @@ var targets: [PackageDescription.Target] = [
3434
]
3535
),
3636

37-
// ==== ------------------------------------------------------------------------------------------------------------
38-
// MARK: Plugins // TODO: rename since may be confused with package plugins?
39-
40-
.target(
41-
name: "ActorSingletonPlugin",
42-
dependencies: [
43-
"DistributedActors",
44-
]
45-
),
46-
4737
.executableTarget(
4838
name: "ExecApp",
4939
dependencies: [
@@ -71,7 +61,6 @@ var targets: [PackageDescription.Target] = [
7161
// name: "DistributedActorsDocumentationTests",
7262
// dependencies: [
7363
// "DistributedActors",
74-
// "ActorSingletonPlugin",
7564
// "DistributedActorsTestKit",
7665
// ],
7766
// exclude: [
@@ -105,14 +94,6 @@ var targets: [PackageDescription.Target] = [
10594
// "CDistributedActorsMailbox",
10695
// "DistributedActorsTestKit"
10796
// ]
108-
// ),
109-
//
110-
// .testTarget(
111-
// name: "ActorSingletonPluginTests",
112-
// dependencies: [
113-
// "ActorSingletonPlugin",
114-
// "DistributedActorsTestKit"
115-
// ]
11697
// ),
11798

11899
// ==== ------------------------------------------------------------------------------------------------------------
@@ -219,13 +200,6 @@ let products: [PackageDescription.Product] = [
219200
"ExecApp",
220201
]
221202
),
222-
223-
/* --- Functional Plugins --- */
224-
225-
.library(
226-
name: "ActorSingletonPlugin",
227-
targets: ["ActorSingletonPlugin"]
228-
),
229203
]
230204

231205
// This is a workaround since current published nightly docker images don't have the latest Swift availabilities yet

Sources/ActorSingletonPlugin/ActorSingleton.swift

Lines changed: 0 additions & 136 deletions
This file was deleted.

Sources/ActorSingletonPlugin/ActorSingletonManager.swift

Lines changed: 0 additions & 111 deletions
This file was deleted.

0 commit comments

Comments
 (0)