# SOME DESCRIPTIVE TITLE.
# Copyright (C) 2001 Python Software Foundation
# This file is distributed under the same license as the Python package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
msgid ""
msgstr ""
"Project-Id-Version: Python 3.15\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2026-11-15 19:30+0000\n"
"PO-Revision-Date: 2025-09-16 00:00+0000\n"
"Language-Team: Indonesian "
"(https://app.transifex.com/python-doc/teams/5390/id/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: id\n"
"Plural-Forms: nplurals=1; plural=0;\n"

msgid "Futures"
msgstr "Future"

msgid ""
"**Source code:** :source:`Lib/asyncio/futures.py`, "
":source:`Lib/asyncio/base_futures.py`"
msgstr ""
"**Kode sumber:** :source:`Lib/asyncio/futures.py`, "
":source:`Lib/asyncio/base_futures.py`"

msgid ""
"*Future* objects are used to bridge **low-level callback-based code** with "
"high-level async/await code."
msgstr ""
"Objek *Future* digunakan untuk menjembatani **kode berbasis callback tingkat "
"rendah** dengan kode async/await tingkat tinggi."

msgid "Future Functions"
msgstr "Fungsi Future"

msgid "Return ``True`` if *obj* is either of:"
msgstr "Mengembalikan ``True`` jika *obj* adalah salah satu dari:"

msgid "an instance of :class:`asyncio.Future`,"
msgstr "sebuah instance dari :class:`asyncio.Future`,"

msgid "an instance of :class:`asyncio.Task`,"
msgstr "sebuah instance dari :class:`asyncio.Task`,"

msgid "a Future-like object with a ``_asyncio_future_blocking`` attribute."
msgstr "objek mirip-Future dengan atribut ``_asyncio_future_blocking``."

msgid "Return:"
msgstr "Mengembalikan:"

msgid ""
"*obj* argument as is, if *obj* is a :class:`Future`, a :class:`Task`, or a "
"Future-like object (:func:`isfuture` is used for the test.)"
msgstr ""
"argumen *obj* apa adanya, jika *obj* adalah :class:`Future`, :class:`Task`, "
"atau objek mirip-Future (:func:`isfuture` digunakan untuk pengujian.)"

msgid ""
"a :class:`Task` object wrapping *obj*, if *obj* is a coroutine "
"(:func:`iscoroutine` is used for the test); in this case the coroutine will "
"be scheduled by ``ensure_future()``."
msgstr ""
"objek :class:`Task` yang membungkus *obj*, jika *obj* adalah coroutine "
"(:func:`iscoroutine` digunakan untuk pengujian); dalam hal ini coroutine "
"akan dijadwalkan oleh ``ensure_future()``."

msgid ""
"a :class:`Task` object that would await on *obj*, if *obj* is an awaitable "
"(:func:`inspect.isawaitable` is used for the test.)"
msgstr ""
"objek :class:`Task` yang akan menunggu *obj*, jika *obj* adalah awaitable "
"(:func:`inspect.isawaitable` digunakan untuk pengujian.)"

msgid "If *obj* is neither of the above a :exc:`TypeError` is raised."
msgstr ""
"Jika *obj* bukan salah satu dari di atas, :exc:`TypeError` akan dimunculkan."

msgid ""
"Save a reference to the result of this function, to avoid a task "
"disappearing mid-execution."
msgstr ""
"Simpan referensi ke hasil fungsi ini, untuk menghindari task yang hilang di "
"tengah eksekusi."

msgid ""
"See also the :func:`create_task` function which is the preferred way for "
"creating new tasks or use :class:`asyncio.TaskGroup` which keeps reference "
"to the task internally."
msgstr ""
"Lihat juga fungsi :func:`create_task` yang merupakan cara yang lebih "
"disarankan untuk membuat task baru, atau gunakan :class:`asyncio.TaskGroup` "
"yang menyimpan referensi ke task secara internal."

msgid "The function accepts any :term:`awaitable` object."
msgstr "Fungsi ini menerima objek :term:`awaitable` apa pun."

msgid ""
"Deprecation warning is emitted if *obj* is not a Future-like object and "
"*loop* is not specified and there is no running event loop."
msgstr ""
"Peringatan pengusangan dimunculkan jika *obj* bukan objek mirip-Future dan "
"*loop* tidak ditentukan dan tidak ada event loop yang sedang berjalan."

msgid ""
"Wrap a :class:`concurrent.futures.Future` object in a "
":class:`asyncio.Future` object."
msgstr ""
"Membungkus objek :class:`concurrent.futures.Future` dalam objek "
":class:`asyncio.Future`."

msgid ""
"Deprecation warning is emitted if *future* is not a Future-like object and "
"*loop* is not specified and there is no running event loop."
msgstr ""
"Peringatan pengusangan dimunculkan jika *future* bukan objek mirip-Future "
"dan *loop* tidak ditentukan dan tidak ada event loop yang sedang berjalan."

msgid "Future Object"
msgstr "Objek Future"

msgid ""
"A Future represents an eventual result of an asynchronous operation.  Not "
"thread-safe."
msgstr ""
"Future merepresentasikan hasil akhir dari sebuah operasi asinkron. Tidak "
"aman terhadap thread."

msgid ""
"Future is an :term:`awaitable` object.  Coroutines can await on Future "
"objects until they either have a result or an exception set, or until they "
"are cancelled. A Future can be awaited multiple times and the result is same."
msgstr ""
"Future adalah objek :term:`awaitable`. Coroutine dapat menunggu objek Future "
"sampai objek tersebut memiliki hasil atau eksepsi yang ditetapkan, atau "
"sampai dibatalkan. Sebuah Future dapat ditunggu beberapa kali dan hasilnya "
"sama."

msgid ""
"Typically Futures are used to enable low-level callback-based code (e.g. in "
"protocols implemented using asyncio :ref:`transports "
"<asyncio-transports-protocols>`) to interoperate with high-level async/await "
"code."
msgstr ""
"Biasanya Future digunakan untuk memungkinkan kode berbasis callback tingkat "
"rendah (misalnya dalam protokol yang diimplementasikan menggunakan asyncio "
":ref:`transports <asyncio-transports-protocols>`) berinteroperasi dengan "
"kode async/await tingkat tinggi."

msgid ""
"The rule of thumb is to never expose Future objects in user-facing APIs, and "
"the recommended way to create a Future object is to call "
":meth:`loop.create_future`.  This way alternative event loop implementations "
"can inject their own optimized implementations of a Future object."
msgstr ""
"Aturan umumnya adalah jangan pernah mengekspos objek Future dalam API yang "
"digunakan pengguna, dan cara yang disarankan untuk membuat objek Future "
"adalah dengan memanggil :meth:`loop.create_future`. Dengan cara ini "
"implementasi event loop alternatif dapat menyuntikkan implementasi "
"Future-nya sendiri yang sudah dioptimalkan."

msgid "Futures are :ref:`generic <generics>` over the type of their results."
msgstr "Future bersifat :ref:`generic <generics>` terhadap tipe hasilnya."

msgid "Added support for the :mod:`contextvars` module."
msgstr "Menambahkan dukungan untuk modul :mod:`contextvars`."

msgid ""
"Deprecation warning is emitted if *loop* is not specified and there is no "
"running event loop."
msgstr ""
"Peringatan pengusangan dimunculkan jika *loop* tidak ditentukan dan tidak "
"ada event loop yang sedang berjalan."

msgid "Return the result of the Future."
msgstr "Mengembalikan hasil dari Future."

msgid ""
"If the Future is *done* and has a result set by the :meth:`set_result` "
"method, the result value is returned."
msgstr ""
"Jika Future *selesai* (*done*) dan memiliki hasil yang ditetapkan oleh "
"metode :meth:`set_result`, nilai hasilnya dikembalikan."

msgid ""
"If the Future is *done* and has an exception set by the "
":meth:`set_exception` method, this method raises the exception."
msgstr ""
"Jika Future *selesai* dan memiliki eksepsi yang ditetapkan oleh metode "
":meth:`set_exception`, metode ini memunculkan eksepsi tersebut."

msgid ""
"If the Future has been *cancelled*, this method raises a "
":exc:`CancelledError` exception."
msgstr ""
"Jika Future telah *dibatalkan* (*cancelled*), metode ini memunculkan eksepsi "
":exc:`CancelledError`."

msgid ""
"If the Future's result isn't yet available, this method raises an "
":exc:`InvalidStateError` exception."
msgstr ""
"Jika hasil Future belum tersedia, metode ini memunculkan eksepsi "
":exc:`InvalidStateError`."

msgid "Mark the Future as *done* and set its result."
msgstr "Menandai Future sebagai *selesai* dan menetapkan hasilnya."

msgid ""
"Raises an :exc:`InvalidStateError` error if the Future is already *done*."
msgstr ""
"Memunculkan galat :exc:`InvalidStateError` jika Future sudah *selesai*."

msgid "Mark the Future as *done* and set an exception."
msgstr "Menandai Future sebagai *selesai* dan menetapkan sebuah eksepsi."

msgid "Return ``True`` if the Future is *done*."
msgstr "Mengembalikan ``True`` jika Future *selesai*."

msgid ""
"A Future is *done* if it was *cancelled* or if it has a result or an "
"exception set with :meth:`set_result` or :meth:`set_exception` calls."
msgstr ""
"Sebuah Future *selesai* jika Future tersebut *dibatalkan* atau jika memiliki "
"hasil atau eksepsi yang ditetapkan melalui panggilan :meth:`set_result` atau "
":meth:`set_exception`."

msgid "Return ``True`` if the Future was *cancelled*."
msgstr "Mengembalikan ``True`` jika Future *dibatalkan*."

msgid ""
"The method is usually used to check if a Future is not *cancelled* before "
"setting a result or an exception for it::"
msgstr ""
"Metode ini biasanya digunakan untuk memeriksa apakah sebuah Future belum "
"*dibatalkan* sebelum menetapkan hasil atau eksepsi untuknya::"

msgid ""
"if not fut.cancelled():\n"
"    fut.set_result(42)"
msgstr ""
"if not fut.cancelled():\n"
"    fut.set_result(42)"

msgid "Add a callback to be run when the Future is *done*."
msgstr "Menambahkan callback yang akan dijalankan saat Future *selesai*."

msgid "The *callback* is called with the Future object as its only argument."
msgstr "*callback* dipanggil dengan objek Future sebagai satu-satunya argumen."

msgid ""
"If the Future is already *done* when this method is called, the callback is "
"scheduled with :meth:`loop.call_soon`."
msgstr ""
"Jika Future sudah *selesai* saat metode ini dipanggil, callback dijadwalkan "
"dengan :meth:`loop.call_soon`."

msgid ""
"An optional keyword-only *context* argument allows specifying a custom "
":class:`contextvars.Context` for the *callback* to run in. The current "
"context is used when no *context* is provided."
msgstr ""
"Argumen *context* opsional khusus keyword memungkinkan penentuan "
":class:`contextvars.Context` kustom bagi *callback* untuk berjalan. Konteks "
"saat ini digunakan ketika tidak ada *context* yang diberikan."

msgid ""
":func:`functools.partial` can be used to pass parameters to the callback, "
"e.g.::"
msgstr ""
":func:`functools.partial` dapat digunakan untuk meneruskan parameter ke "
"callback, misalnya::"

msgid ""
"# Call 'print(\"Future:\", fut)' when \"fut\" is done.\n"
"fut.add_done_callback(\n"
"    functools.partial(print, \"Future:\"))"
msgstr ""
"# Call 'print(\"Future:\", fut)' when \"fut\" is done.\n"
"fut.add_done_callback(\n"
"    functools.partial(print, \"Future:\"))"

msgid ""
"The *context* keyword-only parameter was added. See :pep:`567` for more "
"details."
msgstr ""
"Parameter *context* khusus keyword telah ditambahkan. Lihat :pep:`567` untuk "
"detail selengkapnya."

msgid "Remove *callback* from the callbacks list."
msgstr "Menghapus *callback* dari daftar callback."

msgid ""
"Returns the number of callbacks removed, which is typically 1, unless a "
"callback was added more than once."
msgstr ""
"Mengembalikan jumlah callback yang dihapus, yang biasanya 1, kecuali sebuah "
"callback ditambahkan lebih dari satu kali."

msgid "Cancel the Future and schedule callbacks."
msgstr "Membatalkan Future dan menjadwalkan callback."

msgid ""
"If the Future is already *done* or *cancelled*, return ``False``. Otherwise, "
"change the Future's state to *cancelled*, schedule the callbacks, and return "
"``True``."
msgstr ""
"Jika Future sudah *selesai* atau *dibatalkan*, mengembalikan ``False``. Jika "
"tidak, mengubah status Future menjadi *dibatalkan*, menjadwalkan callback, "
"dan mengembalikan ``True``."

msgid ""
"The optional string argument *msg* is passed as the argument to the "
":exc:`CancelledError` exception raised when a cancelled Future is awaited."
msgstr ""
"Argumen string opsional *msg* diteruskan sebagai argumen ke eksepsi "
":exc:`CancelledError` yang dimunculkan saat Future yang dibatalkan ditunggu."

msgid "Added the *msg* parameter."
msgstr "Menambahkan parameter *msg*."

msgid "Return the exception that was set on this Future."
msgstr "Mengembalikan eksepsi yang ditetapkan pada Future ini."

msgid ""
"The exception (or ``None`` if no exception was set) is returned only if the "
"Future is *done*."
msgstr ""
"Eksepsi (atau ``None`` jika tidak ada eksepsi yang ditetapkan) dikembalikan "
"hanya jika Future *selesai*."

msgid ""
"If the Future isn't *done* yet, this method raises an "
":exc:`InvalidStateError` exception."
msgstr ""
"Jika Future belum *selesai*, metode ini memunculkan eksepsi "
":exc:`InvalidStateError`."

msgid "Return the event loop the Future object is bound to."
msgstr "Mengembalikan event loop yang terikat pada objek Future."

msgid ""
"This example creates a Future object, creates and schedules an asynchronous "
"Task to set result for the Future, and waits until the Future has a result::"
msgstr ""
"Contoh ini membuat objek Future, membuat dan menjadwalkan Task asinkron "
"untuk menetapkan hasil bagi Future, dan menunggu sampai Future memiliki "
"hasil::"

msgid ""
"async def set_after(fut, delay, value):\n"
"    # Sleep for *delay* seconds.\n"
"    await asyncio.sleep(delay)\n"
"\n"
"    # Set *value* as a result of *fut* Future.\n"
"    fut.set_result(value)\n"
"\n"
"async def main():\n"
"    # Get the current event loop.\n"
"    loop = asyncio.get_running_loop()\n"
"\n"
"    # Create a new Future object.\n"
"    fut = loop.create_future()\n"
"\n"
"    # Run \"set_after()\" coroutine in a parallel Task.\n"
"    # We are using the low-level \"loop.create_task()\" API here because\n"
"    # we already have a reference to the event loop at hand.\n"
"    # Otherwise we could have just used \"asyncio.create_task()\".\n"
"    loop.create_task(\n"
"        set_after(fut, 1, '... world'))\n"
"\n"
"    print('hello ...')\n"
"\n"
"    # Wait until *fut* has a result (1 second) and print it.\n"
"    print(await fut)\n"
"\n"
"asyncio.run(main())"
msgstr ""
"async def set_after(fut, delay, value):\n"
"    # Sleep for *delay* seconds.\n"
"    await asyncio.sleep(delay)\n"
"\n"
"    # Set *value* as a result of *fut* Future.\n"
"    fut.set_result(value)\n"
"\n"
"async def main():\n"
"    # Get the current event loop.\n"
"    loop = asyncio.get_running_loop()\n"
"\n"
"    # Create a new Future object.\n"
"    fut = loop.create_future()\n"
"\n"
"    # Run \"set_after()\" coroutine in a parallel Task.\n"
"    # We are using the low-level \"loop.create_task()\" API here because\n"
"    # we already have a reference to the event loop at hand.\n"
"    # Otherwise we could have just used \"asyncio.create_task()\".\n"
"    loop.create_task(\n"
"        set_after(fut, 1, '... world'))\n"
"\n"
"    print('hello ...')\n"
"\n"
"    # Wait until *fut* has a result (1 second) and print it.\n"
"    print(await fut)\n"
"\n"
"asyncio.run(main())"

msgid ""
"The Future object was designed to mimic :class:`concurrent.futures.Future`.  "
"Key differences include:"
msgstr ""
"Objek Future dirancang untuk meniru :class:`concurrent.futures.Future`. "
"Perbedaan utamanya meliputi:"

msgid ""
"unlike asyncio Futures, :class:`concurrent.futures.Future` instances cannot "
"be awaited."
msgstr ""
"tidak seperti Future asyncio, instance :class:`concurrent.futures.Future` "
"tidak dapat ditunggu."

msgid ""
":meth:`asyncio.Future.result` and :meth:`asyncio.Future.exception` do not "
"accept the *timeout* argument."
msgstr ""
":meth:`asyncio.Future.result` dan :meth:`asyncio.Future.exception` tidak "
"menerima argumen *timeout*."

msgid ""
":meth:`asyncio.Future.result` and :meth:`asyncio.Future.exception` raise an "
":exc:`InvalidStateError` exception when the Future is not *done*."
msgstr ""
":meth:`asyncio.Future.result` dan :meth:`asyncio.Future.exception` "
"memunculkan eksepsi :exc:`InvalidStateError` saat Future tidak *selesai*."

msgid ""
"Callbacks registered with :meth:`asyncio.Future.add_done_callback` are not "
"called immediately.  They are scheduled with :meth:`loop.call_soon` instead."
msgstr ""
"Callback yang didaftarkan dengan :meth:`asyncio.Future.add_done_callback` "
"tidak langsung dipanggil. Callback tersebut dijadwalkan dengan "
":meth:`loop.call_soon`."

msgid ""
"asyncio Future is not compatible with the :func:`concurrent.futures.wait` "
"and :func:`concurrent.futures.as_completed` functions."
msgstr ""
"Future asyncio tidak kompatibel dengan fungsi "
":func:`concurrent.futures.wait` dan :func:`concurrent.futures.as_completed`."

msgid ""
":meth:`asyncio.Future.cancel` accepts an optional ``msg`` argument, but "
":meth:`concurrent.futures.Future.cancel` does not."
msgstr ""
":meth:`asyncio.Future.cancel` menerima argumen ``msg`` opsional, tetapi "
":meth:`concurrent.futures.Future.cancel` tidak."
