MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / instances

Method instances

crates/wasmtime/src/runtime/limits.rs:260–263  ·  view source on GitHub ↗

The maximum number of instances that can be created for a [`Store`](crate::Store). Module instantiation will fail if this limit is exceeded. This value defaults to 10,000.

(mut self, limit: usize)

Source from the content-addressed store, hash-verified

258 ///
259 /// This value defaults to 10,000.
260 pub fn instances(mut self, limit: usize) -> Self {
261 self.0.instances = limit;
262 self
263 }
264
265 /// The maximum number of tables that can be created for a [`Store`](crate::Store).
266 ///

Callers 4

store_limitsMethod · 0.45
limiterMethod · 0.45
limiter_asyncMethod · 0.45
wasmtime_store_limiterFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected