Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Предупреждения в файле TelegramController.swift #23

Open
Cyero opened this issue Apr 12, 2024 · 2 comments
Open

Предупреждения в файле TelegramController.swift #23

Cyero opened this issue Apr 12, 2024 · 2 comments

Comments

@Cyero
Copy link

Cyero commented Apr 12, 2024

Постоянно в Xcode висят предупреждения:

  1. "Converting non-sendable function value to '@sendable (Request) async throws -> Bool' may introduce data races".
  2. "Non-sendable type 'any TGConnectionPrtcl' in implicitly asynchronous access to actor-isolated property 'connection' cannot cross actor boundary" - исправляеься заменой "import TelegramVaporBot" на "@preconcurrency import TelegramVaporBot"
    Xcode v.15.3, Swift v.5.10
@nerzh
Copy link
Owner

nerzh commented Apr 12, 2024

спсб за репорт, покажите пжлст скрин на какой строке ругается или немного подробнее, чтоб было быстрее

@Cyero
Copy link
Author

Cyero commented Apr 12, 2024

спсб за репорт, покажите пжлст скрин на какой строке ругается или немного подробнее, чтоб было быстрее

Снимок экрана 2024-04-12 в 18 34 25

Также заметил такое-же поведение в файле configure.swift
При импорте через @preconcurrency import TelegramVaporBot - предупреждений нет

Снимок экрана 2024-04-12 в 18 35 45

@Cyero Cyero changed the title Ошибка в файле TelegramController.swift Предупреждения в файле TelegramController.swift Apr 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants