LockManager

class LockManager

Functions

equals
Link copied to clipboard
open operator fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open fun hashCode(): Int
isCategoryLocked
Link copied to clipboard
fun isCategoryLocked(categoryId: Int, userId: String): Boolean
isQuestionLocked
Link copied to clipboard
fun isQuestionLocked(questionId: Long, userId: String): Boolean
lockCategory
Link copied to clipboard
suspend fun lockCategory(categoryId: Int, userId: String)
This method is thread-safe.
lockQuestion
Link copied to clipboard
suspend fun lockQuestion(questionId: Long, userId: String)
This method is thread-safe.
toString
Link copied to clipboard
open fun toString(): String
unlockCategory
Link copied to clipboard
fun unlockCategory(categoryId: Int): Boolean
unlockQuestion
Link copied to clipboard
fun unlockQuestion(questionId: Long): Boolean