WorkerConnector class abstract interface

An interface abstracting over Worker and SharedWorker constructors, allowing clients of sqlite3_web to customize if and how workers are used.

Constructors

WorkerConnector.defaultWorkers(String uri)
The default implementation, spawning workers with the Worker and SharedWorker constructors.
factory
WorkerConnector.unsupported()
A WorkerConnector implementation that doesn't allow the use of workers.
const
factory

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
spawnDedicatedWorker() → WorkerHandle?
Spawn a new shared database worker, or returns null if dedicated workers aren't supported.
spawnSharedWorker() → WorkerHandle?
Spawn a new shared database worker, or returns null if shared workers aren't supported.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited