In what example?
swift 5.5
func main(req: RequestValue, res: RequestResponse) -> RequestResponse
Look the same
Except one is async and throws
They will work the same
yes, they are same, but they are swift-v2-5.5
recent version swift-v3-5.5 the signature is from https://github.com/open-runtimes/open-runtimes/blob/main/runtimes/swift-5.5/Sources/Runtime/main.swift
func main(context: RuntimeContext) async throws -> RuntimeOutput
Ohh the functions in that repo are got update recently
yup
This new signature is for g4 of functions which isn't available yet.
All the examples shows the version 3
Oh!, got it
Maybe in this case - it will need to be approved by some Appwrite <:appwrite:637383039499894787> member - it might be best:
- Wait for version 4 to be released
- Create the function for version 3
Ok, will create for version 3
when version 4 comes I might update it accordingly
Sounds good to me
thanks, for the suppor @Binyamin
Hey I was working on the issue but all the hacktoberfest 2022 issues are close mine is one of em, whom should i contact for it to be reopened?
Can you send me the link of issue ?
reopened
Hey done with it, Could someone please review it?
Here is the link to PR https://github.com/open-runtimes/examples/pull/179
Recommended threads
- Function executions fail with cURL error...
Appwrite version: 1.8.0 Executor version: 0.11.4 Function runtime: Python 3.12 SELF-HOSTED Function executions that occur at the same moment as the executor's ...
- Broken Appwrite can’t make functions nor...
Hii guys, I was having this issue with my locally hosted Appwrite, I can’t create functions ( both template and manual), I can’t make a custom domain ( like in ...
- Tips for Debugging Appwrite Functions Lo...
Hi everyone! 👋 I have an Appwrite Function running locally with Docker, but I’m struggling to debug it because execution doesn’t reach the breakpoints I set. ...