From da5e46e59f309dc05215d1973d99aeb12bc94f37 Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Sat, 21 Nov 2020 15:19:31 +0600 Subject: [PATCH] remove several PreviewFeature --- .../kotlin/dev/inmo/tgbotapi/extensions/utils/SafelyShortcut.kt | 1 - .../tgbotapi/extensions/utils/updates/retrieving/LongPolling.kt | 1 - 2 files changed, 2 deletions(-) diff --git a/tgbotapi.extensions.utils/src/commonMain/kotlin/dev/inmo/tgbotapi/extensions/utils/SafelyShortcut.kt b/tgbotapi.extensions.utils/src/commonMain/kotlin/dev/inmo/tgbotapi/extensions/utils/SafelyShortcut.kt index 6add07d0b8..9aa29a53d2 100644 --- a/tgbotapi.extensions.utils/src/commonMain/kotlin/dev/inmo/tgbotapi/extensions/utils/SafelyShortcut.kt +++ b/tgbotapi.extensions.utils/src/commonMain/kotlin/dev/inmo/tgbotapi/extensions/utils/SafelyShortcut.kt @@ -7,7 +7,6 @@ import kotlinx.coroutines.CoroutineScope /** * Shortcut for [dev.inmo.micro_utils.coroutines.safely]. It was created for more comfortable way of handling different things */ -@PreviewFeature @Deprecated("In future will be used typealias from micro_utils", ReplaceWith("safely", "dev.inmo.micro_utils.coroutines.safely")) suspend inline fun safely( noinline onException: ExceptionHandler = { throw it }, diff --git a/tgbotapi.extensions.utils/src/commonMain/kotlin/dev/inmo/tgbotapi/extensions/utils/updates/retrieving/LongPolling.kt b/tgbotapi.extensions.utils/src/commonMain/kotlin/dev/inmo/tgbotapi/extensions/utils/updates/retrieving/LongPolling.kt index f6802145d1..b22778975d 100644 --- a/tgbotapi.extensions.utils/src/commonMain/kotlin/dev/inmo/tgbotapi/extensions/utils/updates/retrieving/LongPolling.kt +++ b/tgbotapi.extensions.utils/src/commonMain/kotlin/dev/inmo/tgbotapi/extensions/utils/updates/retrieving/LongPolling.kt @@ -72,7 +72,6 @@ fun RequestsExecutor.startGettingOfUpdatesByLongPolling( * [flowUpdatesPreset] lambda - it will be called BEFORE starting updates getting */ @FlowPreview -@PreviewFeature @Suppress("unused") fun RequestsExecutor.startGettingFlowsUpdatesByLongPolling( timeoutSeconds: Seconds = 30,