FactoryDescriptor

@ObjCName(swiftName = "FactoryDescriptor")
sealed interface FactoryDescriptor

Inspector-shaped view of one registered factory.

Returned in a list by BackgroundTaskManager.registeredFactories so an inspector UI can render "which factory owns which task id" without reaching into WorkerRegistry directly. Two flavours map onto the two registration shapes the registry supports:

SKIE renders this as a Swift enum via onEnum(of:); consumers exhaustively switch on the two cases.

Inheritors

Types

Link copied to clipboard
data class Bulk(val factoryId: String?, val taskIds: Set<String>) : FactoryDescriptor

A BackgroundWorkerFactory object that owns one or more ids.

Link copied to clipboard
data class PerId(val taskId: String) : FactoryDescriptor

One closure registered against one task id.

Properties

Link copied to clipboard
abstract val factoryId: String?

Optional human-readable identifier. null for per-id closures.

Link copied to clipboard
abstract val taskIds: Set<String>

Task ids owned by this factory. Always non-empty.