UniNews
University news from Greek and international universities in one place
Loading...
Searching...
No Matches
uninews.ui.fetch_worker Namespace Reference

Classes

class  FetchResult
 
class  FetchWorker
 

Functions

list[list[Fetcher]] group_by_site (list[Fetcher] fetchers)
 
str describe_error (Exception error)
 

Variables

int MAX_PARALLEL_SITES = 6
 

Detailed Description

Fetching, off the UI thread.

The worker only does network work and returns Articles. It never touches the
database, because a SQLite connection belongs to the thread that opened it.

Function Documentation

◆ describe_error()

str uninews.ui.fetch_worker.describe_error ( Exception  error)

◆ group_by_site()

list[list[Fetcher]] uninews.ui.fetch_worker.group_by_site ( list[Fetcher]  fetchers)

Variable Documentation

◆ MAX_PARALLEL_SITES

int uninews.ui.fetch_worker.MAX_PARALLEL_SITES = 6