Table of Contents

Method Acquire

Namespace
LMKit.Model
Assembly
LM-Kit.NET.dll

Acquire(string)

Acquires the materialization lock for one destination file, blocking while another process holds it. Dispose the returned handle after the write attempt (success or failure) so waiters proceed. There is no overall timeout: a large model legitimately transfers for a long time, and a dead holder's handle is closed by the operating system, so waiting cannot deadlock on a dead process.

public static IDisposable Acquire(string destinationPath)

Parameters

destinationPath string

The model file's final local path.

Returns

IDisposable
Share