chore: import upstream snapshot with attribution
CI / Run CI (push) Has been cancelled
CI / check-backend (push) Has been cancelled
CI / check-frontend (push) Has been cancelled
CI / tests (push) Has been cancelled
CI / e2e-tests (push) Has been cancelled
Copilot Setup Steps / copilot-setup-steps (push) Has been cancelled
CI / Run CI (push) Has been cancelled
CI / check-backend (push) Has been cancelled
CI / check-frontend (push) Has been cancelled
CI / tests (push) Has been cancelled
CI / e2e-tests (push) Has been cancelled
Copilot Setup Steps / copilot-setup-steps (push) Has been cancelled
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
import time
|
||||
|
||||
import chainlit as cl
|
||||
|
||||
|
||||
def sync_function():
|
||||
time.sleep(1)
|
||||
|
||||
|
||||
@cl.on_message
|
||||
async def message(message: cl.Message):
|
||||
await cl.Message(content="Message 1").send()
|
||||
await cl.make_async(sync_function)()
|
||||
await cl.Message(content="Message 2").send()
|
||||
Reference in New Issue
Block a user