VirtualUserScript WaitFor T  Method C# API
Returns a reference to an object stored in the data dictionary. If the object is not yet in the data dictionary, then this method will wait for up to the timeout for the object to be added. For example, a foreground script may need to wait for a background script to put an object into the data dictionary before continuing.

Namespace: Facilita.Fc.Runtime
Assembly: fc_clr (in fc_clr.dll) Version: 9.4.0.26
Syntax

public T WaitFor<T>(
	string key,
	TimeSpan timeout
)

Parameters

key
Type: System String
The key to be looked up in the dictionary.
timeout
Type: System TimeSpan
The maximum amount of time to wait for the object to be added to the dictionary.
Type Parameters

T
The type of the object to retreive from the data dictionary.

Return Value

An object value held in the dictionary.
Exceptions

ExceptionCondition
TimeoutExceptionThe object was not added to the dictionary before the timeout period elapsed.
See Also