Table of Contents

Method RunInBackground

Namespace
Titipi.MocaLib2

RunInBackground(Func<Awaitable>)

Runs an async operation fire-and-forget: returns immediately without blocking the caller, and any exception thrown by work is caught and logged instead of being left unobserved. This is the one sanctioned place for async void in MocaLib2 — use it for background work whose completion the caller does not need to await (e.g. warming up the ad SDK during startup without blocking the loading screen).

public static void RunInBackground(Func<Awaitable> work)

Parameters

work Func<Awaitable>