Ejemplo n.º 1
0
        private void performFetch()
        {
            request?.Cancel();

            request          = new GetNewsRequest(lastCursor);
            request.Success += response => Schedule(() => onSuccess(response));
            api.PerformAsync(request);
        }
Ejemplo n.º 2
0
        private void beginLoading(bool showLoadingOverlay)
        {
            request?.Cancel();
            cancellationToken?.Cancel();

            if (showLoadingOverlay)
            {
                Loading.Show();
            }
        }