@fluidframework/container-definitions 2.0.0-dev.7.2.0.204906 → 2.0.0-dev.7.3.0.206769

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/src/runtime.ts CHANGED
@@ -99,10 +99,10 @@ export interface IRuntime extends IDisposable {
99
99
 
100
100
  /**
101
101
  * Get pending local state in a serializable format to be given back to a newly loaded container
102
- * @experimental
102
+ * @alpha
103
103
  * {@link https://github.com/microsoft/FluidFramework/packages/tree/main/loader/container-loader/closeAndGetPendingLocalState.md}
104
104
  */
105
- getPendingLocalState(props?: { notifyImminentClosure?: boolean }): unknown;
105
+ getPendingLocalState(props?: IGetPendingLocalStateProps): unknown;
106
106
 
107
107
  /**
108
108
  * Notify runtime that container is moving to "Attaching" state
@@ -165,7 +165,7 @@ export interface IContainerContext {
165
165
  ) => number;
166
166
  // TODO: use `unknown` instead (API breaking)
167
167
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
168
- readonly submitSignalFn: (contents: any) => void;
168
+ readonly submitSignalFn: (contents: any, targetClientId?: string) => void;
169
169
  readonly disposeFn?: (error?: ICriticalContainerError) => void;
170
170
  readonly closeFn: (error?: ICriticalContainerError) => void;
171
171
  readonly deltaManager: IDeltaManager<ISequencedDocumentMessage, IDocumentMessage>;
@@ -250,3 +250,24 @@ export interface IRuntimeFactory extends IProvideRuntimeFactory {
250
250
  */
251
251
  instantiateRuntime(context: IContainerContext, existing: boolean): Promise<IRuntime>;
252
252
  }
253
+
254
+ /**
255
+ * Defines list of properties expected for getPendingLocalState
256
+ * @alpha
257
+ */
258
+ export interface IGetPendingLocalStateProps {
259
+ /**
260
+ * Indicates the container will close after getting the pending state. Used internally
261
+ * to wait for blobs to be attached to a DDS and collect generated ops before closing.
262
+ */
263
+ readonly notifyImminentClosure: boolean;
264
+
265
+ /**
266
+ * Abort signal to stop waiting for blobs to get attached to a DDS. When triggered,
267
+ * only blobs attached will be collected in the pending state.
268
+ * Intended to be used in the very rare scenario in which getLocalPendingState go stale due
269
+ * to a blob failed to be referenced. Such a blob will be lost but the rest of the state will
270
+ * be preserved and collected.
271
+ */
272
+ readonly stopBlobAttachingSignal?: AbortSignal;
273
+ }