initSecondary static method
Initializes the cbl
package, for a secondary isolate.
A value for context
can be obtained from CouchbaseLite.context.
Implementation
static Future<void> initSecondary(Object context) =>
asyncOperationTracePoint(InitializeOp.new, () async {
if (context is! IsolateContext) {
throw ArgumentError.value(context, 'context', 'is invalid');
}
await initSecondaryIsolate(context);
});