Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

requests are not asynchronous #1489

Open
br4nnigan opened this issue Mar 25, 2024 · 1 comment
Open

requests are not asynchronous #1489

br4nnigan opened this issue Mar 25, 2024 · 1 comment

Comments

@br4nnigan
Copy link

It seesm the requests aren't really asynchronous as stated in the readme ("The SDK is designed to make async requests by default").

$t = microtime(true);
$r = $graphServiceClient->users()->byUserId($user_id)->get();
print_r($r); // => fullfilled promise, already contains data
var_dump(number_format(microtime(true) - $t, 3)); // about 400ms later

Is this a bug or could this be environment related?

@br4nnigan
Copy link
Author

I realized when doing mutliple the actual requests seem async, it's just the output that is still in sync for some reason

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant