Skip to content

Instantly share code, notes, and snippets.

@kennykerr
Created February 21, 2015 20:15
Show Gist options
  • Save kennykerr/72cdba3c81120b7ac612 to your computer and use it in GitHub Desktop.
Save kennykerr/72cdba3c81120b7ac612 to your computer and use it in GitHub Desktop.
#include "Precompiled.h"
#include <modern\async.h>
using namespace Modern;
using namespace Windows::Foundation;
using namespace Windows::Web::Syndication;
std::future<void> Sample()
{
Uri uri(L"http://kennykerr.ca/feed");
SyndicationClient client;
ISyndicationFeed feed = __await client.RetrieveFeedAsync(uri);
for (ISyndicationItem const & item : feed.Items())
{
String title = item.Title().Text();
printf("%ls\n", title.Buffer());
}
}
int main()
{
Initialize();
Sample().get();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment