You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> Prefer `@Lightweight` instead of using direct executor as it could cause dead locks and stack overflows
147
+
148
+
For any trivial tasks that don't need to run asynchronously
149
+
150
+
Example:
151
+
152
+
```kotlin
153
+
FirebaseExecutors.directExecutor()
154
+
```
155
+
156
+
### Sequential Executor
157
+
158
+
When you need an executor that runs tasks sequentially and guarantees any memory access is synchronized prefer to use a sequential executor instead of creating a `newSingleThreadedExecutor()`.
159
+
160
+
Example:
161
+
162
+
```java
163
+
// Pick the appropriate underlying executor using the chart above
0 commit comments