Init(args)
Scripting Reference
Loading...
Searching...
No Matches

◆ GetForAsync< TValue >()

System.Threading.Tasks.Task< TValue > Sisus.Init.WaitForService.GetForAsync< TValue > ( Component client)

Defers execution of the calling method until the service of type TValue is available, and then returns it.

Template Parameters
TValueType of the service to wait for.
Parameters
clientThe component requesting the service, if request is coming from a component; otherwise, null.
Returns
Awaitable<TValue> that can be awaitawaited

to defer execution until the service is available.

Implements Sisus.Init.IValueByTypeProviderAsync.