Skip to content

Commit

Permalink
reintroduce resonate.options and ctx.options (#137)
Browse files Browse the repository at this point in the history
  • Loading branch information
avillega authored Jul 30, 2024
1 parent ce3850a commit 321431d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/resonate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,10 @@ export class Resonate {
return this.store.locks;
}

options(opts: Partial<Options>): PartialOptions {
return options(opts);
}

registeredFunction(funcName: string, version: number): { func: Func; opts: Options } {
if (!this.#registeredFunctions[funcName]?.[version]) {
throw new Error(`Function ${funcName} version ${version} not registered`);
Expand Down Expand Up @@ -536,6 +540,10 @@ export class Context {
return this.parent ? this.parent.getResource<R>(name) : undefined;
}

options(opts: Partial<Options>): PartialOptions {
return options(opts);
}

/**
* Invoke a remote function.
*
Expand Down

0 comments on commit 321431d

Please sign in to comment.