# coroutine.yield

- **Ortam:** İstemci, Sunucu, Menü
- **İngilizce aslı:** https://wiki.facepunch.com/gmod/coroutine.yield
- **Çeviri tarihi:** 2025-09-08

```lua
vararg coroutine.yield( ... )
```

## Açıklama

Aktif coroutine'i duraklatır ve tüm ek değişkenleri, coroutine'i en son devam ettiren [coroutine.resume](https://gmod.tr/wiki/coroutine.resume) çağrısına geçirir ve önceki resume çağrısına geçirilen tüm ek değişkenleri döndürür.

## Argümanlar

1. [vararg](https://gmod.tr/wiki/vararg) **returnValue**: Son [coroutine.resume](https://gmod.tr/wiki/coroutine.resume) çağrısı tarafından döndürülecek argümanlar.

## Dönen Değerler

1. [vararg](https://gmod.tr/wiki/vararg): Daha önce [coroutine.resume](https://gmod.tr/wiki/coroutine.resume) tarafından ayarlanan argümanlar.

### Örnek

Dönen değer olarak vararg'ların kullanımını gösterir.

```lua
local co = coroutine.create( function()
	coroutine.yield( "Hello world!" )
end )

print( coroutine.resume( co ) )
```

**Çıktı:**

```lua
true, "Hello world!"
```

- [GMod Wiki ana sayfası](https://gmod.tr/wiki)

---

[Tüm sunucular](https://gmod.tr/) · [GmodTR Launcher](https://gmod.tr/launcher) · [Rehber](https://gmod.tr/rehber) · [GMod Wiki](https://gmod.tr/wiki) · [GmodTR nedir?](https://gmod.tr/hakkinda) · [Sunucu ekle](https://gmod.tr/sunucu-ekle) · [Discord](https://discord.gg/gmodtr)

Kaynak: https://gmod.tr/wiki/coroutine.yield
