Executes the given function within the specified context.
This method ensures the provided context is active during function execution,
making it accessible to get() calls within the function and any nested function calls.
When the function completes, the previous context (if any) is restored.
Useful for:
Note: This method is used for both asynchronous and synchronous execution.
The function to execute within the context
The return value of the executed function
IMPORT_PATH:
"@daiso-tech/core/execution-context/no-op-execution-context-adapter"No-operation execution context adapter.
This adapter implements IExecutionContextAdapter but provides no actual context storage. It always returns null for get() and simply executes functions without maintaining any context. Useful for scenarios where context management is not needed or for testing purposes.
Use this adapter when you want to disable context functionality or in environments where context propagation is not necessary.