Return Promise from tracesSampler?

In the browser SDK, I’d like to set the trace sampling rate at runtime, fetched dynamically from our feature flag engine. I tried returning a Promise from tracesSampler but then it never samples at all.