Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
xtremebytes
8 years agoExplorer | Level 3
Cancelling ListFolderLongpollAsync
Hi,
I have a Dropbox longpoll running as a task, implemented in C# (Xamarin Forms) as the following.
async Task DropboxLongpoll (string cursor, CancellationToken token)
{
var longpol...
- 8 years agoIt's not possible to cancel an ongoing request instantly unfortunately, but the long poll request will eventually close or time out on its own. I'll pass this along as a feature request for actual CancellationToken support in the SDK though.
xtremebytes
8 years agoExplorer | Level 3
The line token.ThrowIfCancellationRequested (); was not necessary. I realised there is a different reason why the longpoll seemed to be called twice. I had a threading issue with the DropboxLongpollReportChanges() method. Still, it would be nice to know if the longpoll task is actually getting cancelled so that it doesn't waste resources.
Greg-DB
Dropbox Community Moderator
8 years agoIt's not possible to cancel an ongoing request instantly unfortunately, but the long poll request will eventually close or time out on its own. I'll pass this along as a feature request for actual CancellationToken support in the SDK though.
- xtremebytes8 years agoExplorer | Level 3Thanks a lot!
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X, Facebook or Instagram.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!