Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
IgorBuchelnikov committed May 5, 2021
1 parent b551555 commit cd1098d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2294,7 +2294,7 @@ namespace ObservableComputationsExample
}
}
```
In this example, we show the user the form without waiting for the data to load from the database to finish. While loading, the form is rendered and the user gets acquainted with its contents. Note that the source code loading code is abstracted from computations over them (*PaidOrders* and *UnpaidOrders*).
In this example, we show the user form without waiting for the data to load from the database to finish. While loading, the form is rendered and the user gets acquainted with its contents. Note that the source code loading code is abstracted from computations over them (*PaidOrders* and *UnpaidOrders*).

### Performing computations in a background thread
In the previous example, only data from the database was loaded in the background thread. The computations (*PaidOrders* and *UnpaidOrders*) were performed in the main thread (UI thread). Sometimes it is necessary to perform computations in a background thread, and in the main thread to get only the final computation results (XAML is the same as in the previous example):
Expand Down Expand Up @@ -2579,7 +2579,7 @@ namespace ObservableComputationsExample
Thread thread = new Thread(() =>
{
Thread.Sleep(1000); // accessing DB
Random random = new Random();
Random random = new Random();in
for (int i = 0; i < 5000; i++)
{
Order order = new Order(i);
Expand Down Expand Up @@ -4586,4 +4586,4 @@ If you have [IList&lt;T&gt;](https://docs.microsoft.com/en-us/dotnet/api/system.

https://github.com/gsonnenf/Gstc.Collections.ObservableLists

Nuget: https://www.nuget.org/packages/Gstc.Collections.ObservableLists
Nuget: https://www.nuget.org/packages/Gstc.Collections.ObservableLists

0 comments on commit cd1098d

Please sign in to comment.