Skip to content

Commit

Permalink
Add the exception thrown by the load method in the KDoc
Browse files Browse the repository at this point in the history
  • Loading branch information
LunarX committed Jun 19, 2024
1 parent dd3bca1 commit 4b1a12e
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ class EditorReloader(private val coroutineScope: CoroutineScope) {
* }
* }
* ```
*
* @throws IllegalStateException If the method is not called on the main thread.
*/
suspend fun load(editor: RichHtmlEditorWebView, defaultHtml: String) {
if (Looper.myLooper() != Looper.getMainLooper()) error("The load method needs to be called on the main thread")
Expand Down

0 comments on commit 4b1a12e

Please sign in to comment.