SwiftactorPromotedContentJetSupport

actor PromotedContentJetSupport.IntentDispatcher

Structure

What a query’s scopes step through. Every node here can be matched — see the syntax.

inherits{}

Members 9

  1. deinitdeinit
  2. fieldvar $defaultActor: Builtin.DefaultActorStorage+0x10
  3. fieldlet objectGraph: JetEngine.BaseObjectGraph+0x70
  4. funcclearCache() async throws -> ()
  5. funcdispatch<A where A: PromotedContentJetSupport.JetSerializable>(_: A, dependencies: PromotedContentJetClient.IntentDependencyProvider) async throws -> A.ReturnType
  6. funcfetchForCache(_: Foundation.URL, bag: AMSSnapshotBag, automatic: Bool) async throws -> PromotedContentJetSupport.JetPackSourceLoader.UpdateStatus
  7. funcrequestGarbageCollection() async throws -> ()
  8. varvar jsVersion: PromotedContentJetClient.JetPackVersion? { get }
  9. varvar unownedExecutor: UnownedSerialExecutor { get }
actor IntentDispatcher {
    class Builder {
        protocol Monitor {
            func failedToLoad(_: PromotedContentJetSupport.JetPackSourceLoader)
            func successfullyLoaded(_: PromotedContentJetSupport.JetPackSourceLoader)
        }
        var nativeIntentImplementations: [any JetEngine.IntentImplementation]
        var includeAMSDependencies: Swift.Bool
        var sourceLoaders: CollectionsInternal.OrderedSet<PromotedContentJetSupport.JetPackSourceLoader>
        var jsDependencies: [Swift.String : any JetEngine.CustomJSValueConvertible]
        var includeCacheSession: Swift.Bool
        var cacheURL: Foundation.URL?
        var buildMonitor: (any PromotedContentJetSupport.IntentDispatcher.Builder.Monitor)?
        var jsLoggingEnabled: Swift.Bool

        init()
        func create() -> PromotedContentJetSupport.IntentDispatcher

        final func enableLogging() -> Self
        final func set(buildMonitor: any PromotedContentJetSupport.IntentDispatcher.Builder.Monitor) -> Self
        final func set(cacheDirectory: Foundation.URL) -> Self
        final func adding(dependency: any JetEngine.CustomJSValueConvertible, named: Swift.String) -> Self
        final func adding(intent: any JetEngine.IntentImplementation) -> Self
        final func adding(source: PromotedContentJetSupport.JetPackSourceLoader) -> Self

        deinit
    }
    let objectGraph: JetEngine.BaseObjectGraph

    func dispatch<A>(_: A, dependencies: PromotedContentJetClient.IntentDependencyProvider) async throws -> A.ReturnType where A: PromotedContentJetSupport.JetSerializable
    func requestGarbageCollection() async throws
    func clearCache() async throws
    func fetchForCache(_: Foundation.URL, bag: __C.AMSSnapshotBag, automatic: Swift.Bool) async throws -> PromotedContentJetSupport.JetPackSourceLoader.UpdateStatus
    var jsVersion: PromotedContentJetClient.JetPackVersion? {
        get
    }

    var unownedExecutor: Swift.UnownedSerialExecutor {
        get
    }

    deinit
}