PlayFab/NodeSDK

Does this support async/await?

Closed this issue · 2 comments

eAi commented

It doesn't look like the SDK supports async/await. Is this something you intend to change?

API calls now return a promise object, which you can await on.
Let me know if this resolves the request.
Thanks!

@pgilmorepf I'm confused by this statement.. The APIs do not return Promises, and the functions are not defined as async 🤔

function GetPlayersInSegment(
            request: PlayFabServerModels.GetPlayersInSegmentRequest | null,
            callback: PlayFabModule.ApiCallback<PlayFabServerModels.GetPlayersInSegmentResult> | null,
        ): void;